[GraphHopper] App crashed getting response from GraphHopperAPI.rout(request)
Awais Bin Asif
09bicsebasif at seecs.edu.pk
Thu May 2 10:37:57 UTC 2013
I have tried your instruction to
create graphhopper-0.1-SNAPSHOT-android.jar file. But i am still getting
the same errors now i have
graphhopper-0.1-SNAPSHOT-android.jar
graphhopper-0.1-SNAPSHOT.jar
graphhopper-0.1-SNAPSHOT-jar-with-dependency.jar
in Android Dependencies
On Mon, Apr 29, 2013 at 11:30 AM, Peter K <peathal at yahoo.de> wrote:
> AStar can be used like it is described in the wiki:
> https://github.com/graphhopper/graphhopper/wiki/Low-Level-API
> Instead of DijkstraSimple use AStar
>
> But be aware that the normal algorithms will require more RAM than the
> contraction hierarchy* optimized ones.
> So only mid-sized countries are possible on a mobile platform as our AStar
> still is exact and does not e.g. throw away too-far-away points to reduce
> memory consumption.
>
> Regards,
> Peter.
>
> *
> http://lists.openstreetmap.org/pipermail/graphhopper/2013-April/000057.html
>
>
>
> Yes the demo app is working fine. Basically i want to integrate it in my
> Android app. I want to develop an Android app which gives offline
> navigation. But now i am trying to run the demo code first. And one more
> thing i want to ask there is AStar.java file upload at
> https://github.com/graphhopper/graphhopper/blob/master/src/main/java/com/graphhopper/routing/AStar.java
>
> can i use this algorithm for android app offline route planning.?????
>
>
> On Sun, Apr 28, 2013 at 1:22 AM, Peter K <peathal at yahoo.de> wrote:
>
>> Please let me know the error and what you changed to better guide you
>> ...
>>
>>
>> > Then i took two parts of the code
>>
>> You tried to integrate it in your own application? Is the demo app
>> working for you? Try starting from there and iterate ...
>>
>>
>> Now i don't know the implementation of GraphHopperAPI.rout(req) so how
>> can i figure this out.
>>
>>
>> But this is in the source code!?
>>
>>
>> Regards,
>> Peter.
>>
>>
>>
>> I am trying to run the code Graphhopper-Android from
>> https://github.com/graphhopper/graphhopper-android using berlin-gh graph
>> file available at https://code.google.com/p/graphhopper/downloads/list
>>
>> First i tried to load the .map file and it successfully loaded. it
>> showed the brelin's map
>>
>> Then i took two parts of the code
>> PrepareGraph()
>> calcPath()
>>
>> Prepare graph makes toast "*Finished loading graph. Touch to route*"
>> thats mean graph loaded successfully. in calcPath() function App crashed at
>>
>> GHResponse resp = hopper.route(req); while getting response.
>>
>> where hopper is *GraphHopperAPI hopper*;
>> and for request i hard coded the lat lon from map.
>>
>>
>>
>> _______________________________________________
>> GraphHopper mailing list
>> GraphHopper at openstreetmap.org
>> http://lists.openstreetmap.org/listinfo/graphhopper
>>
>>
>
>
> _______________________________________________
> GraphHopper mailing listGraphHopper at openstreetmap.orghttp://lists.openstreetmap.org/listinfo/graphhopper
>
>
>
> --
> GraphHopper.com Your way is our destination!
>
>
> _______________________________________________
> GraphHopper mailing list
> GraphHopper at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/graphhopper
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20130502/bb72eaf2/attachment-0001.html>
More information about the GraphHopper
mailing list