<br><br>On Monday, June 10, 2013, Razvan C  wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-size:12pt;font-family:arial,helvetica,sans-serif">
<div><span></span></div><blockquote type="cite"><div style="font-size:12pt;font-family:arial,helvetica,sans-serif"><span><blockquote type="cite"><div style="font-size:12pt;font-family:arial,helvetica,sans-serif"><div><span>For Geocoding I think you can take a look to                  Nominatim                  tool (<a href="http://wiki.openstreetmap.org/wiki/Nominatim" rel="nofollow" target="_blank">http://wiki.openstreetmap.org/wiki/Nominatim</a>).</span></div>
</div></blockquote><div> We're already using nominatim for the web demo. This            can't be used for Android for several reasons. Or what was   
         the question :) ?</div><div> </div><div><b>What are the reason?</b></div></span></div></blockquote><div>    You cannot use nominatim if you want <b>offline</b> geocoding. This    would mean to port nominatim to android is impossible. If you want    online geocoding then offline routing is senseless too IMO. <br>
<br>    But using a graphhopper webservice from Android is easy: have a look    into the web project and copy & paste GraphHopperWeb to your    project and use it instead of 'GraphHopper.java'. Then, to use    nominatim, you can use NominatimGeocoder</div>
<div> </div><div><strong>If you want to make an offline GPS you will need a nominatim option, because requesting a user to tap on map for getting a route is not so right.</strong></div><div><strong>Why is impossible to port nominatim to Android, taking in account that you don't port whole World but just a portion?</strong></div>
<div></div></div></div></blockquote><div><br></div><div>The problem is not in data amount (only) but also platforms. There is no php and postgis on android, so you would need to rewrite the code. It would be very welcome contribution for many if you would do it, for sure. </div>
<div><br></div><div>There is some activity to have geocoding on top of mapsforge, but I'm not sure if ere is anything useful or real activity. See <span style="font-family:'.HelveticaNeueUI';white-space:nowrap"><a href="http://code.google.com/p/mapsforge/issues/detail?id=16">http://code.google.com/p/mapsforge/issues/detail?id=16</a></span></div>
<div><br></div><div>Jaak<span></span></div><div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-size:12pt;font-family:arial,helvetica,sans-serif">
<div style="font-family:arial,helvetica,sans-serif;font-size:12pt"><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div><br><br>When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of GraphHopper digest..."<br><br>Today's Topics:<br><br>   1. Re: Speed
 Limits (Peter K)<br><div>
  

    
  
  <div>
    <div><br>
    </div>
    <blockquote type="cite">
      <div style="font-size:12pt;font-family:arial,helvetica,sans-serif"><span>
          <div><span>Maxspeed
              (<a href="http://wiki.openstreetmap.org/wiki/Maxspeed" rel="nofollow" target="_blank">http://wiki.openstreetmap.org/wiki/Maxspeed</a>) / Speed
              limits (<a href="http://wiki.openstreetmap.org/wiki/Speed_limits" rel="nofollow" target="_blank">http://wiki.openstreetmap.org/wiki/Speed_limits</a>)
              are defined in OSM.</span></div>
          <div> Again: we already parse maxspeed for cars</div>
          <div> </div>
          <div><b>How can I get maxspeed in Android?</b><br>
          </div>
        </span></div>
    </blockquote>
    <br>
    you can only get the speed which could be defined due to the
    maxspeed tag but it could be also without limit and defined via the
    highway type:<br>
    <br>
    // the speed in km/h<br>
    vehicleEncoder.getSpeed(edgeIterator.flags())<br>
    <br>
    <blockquote type="cite">
      <div style="font-size:12pt;font-family:arial,helvetica,sans-serif"><span>
          <blockquote type="cite">
            <div style="font-size:12pt;font-family:arial,helvetica,sans-serif">
              <div><span>For Geocoding I think you can take a look to
                  Nominatim
                  tool (<a href="http://wiki.openstreetmap.org/wiki/Nominatim" rel="nofollow" target="_blank">http://wiki.openstreetmap.org/wiki/Nominatim</a>).</span></div>
            </div>
          </blockquote>
          <div> We're already using nominatim for the web demo. This
            can't be used for Android for several reasons. Or what was
            the question :) ?</div>
          <div> </div>
          <div><b>What are the reason?</b></div>
        </span></div>
    </blockquote>
    <br>
    You cannot use nominatim if you want <b>offline</b> geocoding. This
    would mean to port nominatim to android is impossible. If you want
    online geocoding then offline routing is senseless too IMO. <br>
    <br>
    But using a graphhopper webservice from Android is easy: have a look
    into the web project and copy & paste GraphHopperWeb to your
    project and use it instead of 'GraphHopper.java'. Then, to use
    nominatim, you can use NominatimGeocoder<br>
    <br>
    Regards,<br>
    Peter.<br>
  </div>

</div><br>_______________________________________________<br>GraphHopper mailing list<br><a href="javascript:_e({}, 'cvml', 'GraphHopper@openstreetmap.org');" target="_blank">GraphHopper@openstreetmap.org</a><br>
<a href="http://lists.openstreetmap.org/listinfo/graphhopper" target="_blank">http://lists.openstreetmap.org/listinfo/graphhopper</a><br><br><br></div> </div> </div>  </div></div></blockquote><br><br>-- <br>Jaak Laineste<br>
<br><br>