[GraphHopper] offline routing using address names

Israel Marinho ilm.eletrica at gmail.com
Tue Feb 4 14:05:32 UTC 2014


Ok, thank you for your reply.


On 4 February 2014 15:03, Peter K <peathal at yahoo.de> wrote:

>  Hey Marinho,
>
> geocoding (getting a GPS coordinate from an address) is currently not the
> scope of GraphHopper.
>
> Regards,
> Peter.
>
>
>   Hello,
>
>  I am developing an application for Android that must have offline map and
> routing features.
> After some search on Internet, I found the libraries mapsforge and
> graphhopper.
>  I saw the example provided by graphhopper's webpage and managed to build
> my own app using those libraries. But what I would like to know is how I
> can enter the start and end points for routing by using address names.
>  I read the javadocs of graphhopper and saw some classes related to data
> storage and name indexes and in the sdcard there are some binary files
> called "names" and "locationIndex", so I guess this should be related to
> what I want.
>
>  I tried to get access to such files by doing this:
>
> String mapsFolder =  Environment.getExternalStorageDirectory().getPath() +
> "/graphhopper/maps/";
> MMapDirectory mapDirectory = new MMapDirectory(mapsFolder);
> NameIndex nameIndex = new NameIndex(mapDirectory);
>
> String name = nameIndex.get(0);
> log(name);
>
>
>  And what I got on LogCat was:
>
> 02-04 13:49:50.514: I/Marinho(2507): found graph
> LevelGraphStorage|car|MMAP_STORE|2,3,2,2,2, nodes:1196761
>
>
>
>  So, definitely it was not what I expected.
>
>  Could someone tell whether this is the right direction or not, please ?
>
>  Regards,
>
>  Marinho
>
>
> _______________________________________________
> GraphHopper mailing listGraphHopper at openstreetmap.orghttps://lists.openstreetmap.org/listinfo/graphhopper
>
>
>
> _______________________________________________
> GraphHopper mailing list
> GraphHopper at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/graphhopper
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20140204/59d7d7d3/attachment.html>


More information about the GraphHopper mailing list