[GraphHopper] Where is the Grapphoper.jar (Android)
Muhammad Babar
babar.magma at gmail.com
Wed Sep 10 11:23:59 UTC 2014
Peter one thing i can't understand is
boolean greaterOrEqKitkat = Build.VERSION.SDK_INT >= 19;
if (greaterOrEqKitkat)
{
if
(!Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED))
{
logUser("GraphHopper is not usable without an external
storage!");
return;
}
mapsFolder = new
File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS),
"/graphhopper/maps/");
}
mapsFolder = new
File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS),
"/graphhopper/maps/");
Why this for kitkat or greater? why not this mapsFolder = new
File(Environment.getExternalStorageDirectory(), "/graphhopper/maps/");
Environment.DIRECTORY_DOWNLOADS does this mean for kitkat or higher the map
files and routing data should be in Download directory? Can you please
explain why you are doing this?
On Wed, Sep 10, 2014 at 2:57 PM, Muhammad Babar <babar.magma at gmail.com>
wrote:
> Thanks petter for informing. then what does this "Call load or
> importOrLoad before routing" error relates to?
>
> On Wed, Sep 10, 2014 at 12:58 PM, Peter <graphhopper at gmx.de> wrote:
>
>> Hey Muhammad,
>>
>> thanks for your interests in GraphHopper! Still I would like you that you
>> do some research before posting to the mailing list, especially if you find
>> several problems. In that case you can collect them into just one a bit
>> longer mail (As I would like to avoid that lots of people get lots of
>> mails). Secondly your question should be GraphHopper related (the question
>> regarding zoom level is mapsforge I think).
>>
>> Now to your other questions:
>>
>> > It's recommended to create graphs and then read them with the same
>> GraphHopper version, as there may be differences in the graph structure as
>> the library evolves.
>>
>> Yes
>>
>>
>> > Does it mean that i have to use the SNAPHOT.0.4 that is automatically
>> created in ../core/target when routing data(Graph) is being made?
>> > using the command ./graphhopper.sh import <your-osm-file>?
>>
>> It just means, if you create your graph with 0.3 you'll have to use 0.3
>> in your Android app. E.g. do
>>
>> git checkout 0.3
>>
>> Then you will see 0.3 in target and the created graph is compatible with
>> your Android jars.
>>
>>
>> > Check this https://github.com/graphhopper/graphhopper/issues/251
>> > I have found the bug in code
>>
>> Your problem
>> <https://github.com/graphhopper/graphhopper/issues/251#issuecomment-55078568>
>> is not really a bug and not related to #251, because when we download the
>> zgh files the created folders have a different naming schema. So when you
>> copy to Android you'll have to make sure that you properly name the folder.
>>
>> Regards,
>> Peter.
>>
>>
>> On 10.09.2014 09:48, Muhammad Babar wrote:
>>
>> Why mapView.getMapZoomControls().setZoomLevelMin((byte) 10); takes byte
>> its Java not C? it should be taking integer?
>>
>> I pass it 0 and app crashes?
>>
>> On Wed, Sep 10, 2014 at 12:39 PM, Muhammad Babar <babar.magma at gmail.com>
>> wrote:
>>
>>> @Emux
>>> It's recommended to create graphs and then read them with the same
>>> GraphHopper version, as there may be differences in the graph structure as
>>> the library evolves.
>>>
>>> Does it mean that i have to use the SNAPHOT.0.4 that is automatically
>>> created in ../core/target when routing data(Graph) is being made? using the
>>> command ./graphhopper.sh import <your-osm-file>?
>>>
>>> On Wed, Sep 10, 2014 at 12:14 PM, Emux <devemux86 at gmail.com> wrote:
>>>
>>>> GraphHopper 0.3 is the latest release version.
>>>> 0.4-SNAPSHOT is just a tag of the master branch where the current
>>>> development takes place.
>>>>
>>>> It's recommended to create graphs and then read them with the same
>>>> GraphHopper version, as there may be differences in the graph structure as
>>>> the library evolves.
>>>>
>>>> --
>>>> Emux
>>>> Cruiser <http://wiki.openstreetmap.org/wiki/Cruiser> - Atlas
>>>> <http://wiki.openstreetmap.org/wiki/Atlas_%28navigation_application%29>
>>>>
>>>> _______________________________________________
>>>> GraphHopper mailing list
>>>> GraphHopper at openstreetmap.org
>>>> https://lists.openstreetmap.org/listinfo/graphhopper
>>>>
>>>>
>>>
>>
>>
>> _______________________________________________
>> 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/20140910/7c6547c9/attachment.html>
More information about the GraphHopper
mailing list