Hi,

I also suspect that you somehow used 0.2 version graphhopper to generate graphs.

With a little effort you can also try to use different (newer or older) 
graphhopper JAR versions with Nutiteq SDK, as long as you use also graphs with 
corresponding version. To change it I would do following:
1) change graphhopper version in pom.xml 
2) change GraphhopperRouteActivity.java [1] (from where you probably got 
GH-Nutiteq integration code) to reflect GH API changes. With all updates there 
have been mandatory small GH API changes - some parameter renamed, some added, 
some removed. It should not be more than 1-2 line changes, as client uses just 
one API call, but Peter knows best. Maybe there is even update guide somewhere 
in release notes?

In a production app I would use the latest Graphhopper version (0.4?), for both 
data processing and in mobile. Nutiteq SDK sample app may have older version. 
Pull requests are welcome :)

[1] 
https://github.com/nutiteq/hellomap3d/blob/master/AdvancedMap3D/src/main/java/com/nutiteq/advancedmap/activity/GraphhopperRouteActivity.java
 

Jaak
Nutiteq


On 10 Oct 2014, at 14:53, Peter <[email protected]> wrote:

> Hi Christian,
> 
> that is strange. v0.3 should indeed produce the necessary files for the 
> nutiteq example, or are you using v0.2 somehow to generate the files?
> 
> Another way around this problem is to package the Nutiteq example on your own 
> with GraphHopper 0.3
> 
> Regards,
> Peter.
> 
> BTW: thanks emux et al for answering!
> 
> On 10.10.2014 09:30, Christian Doerr wrote:
>> Hello,
>> I am using GraphHopper as part of Nutiteq's SDK for offline maps on Android, 
>> and I have been running into issues with version incompatibilities of the 
>> nodes and edge files Graphhopper generates. My question is which version of 
>> GraphHopper I should use to generate a gh-package with the following version 
>> numbers:
>> graph.dimension=2
>> nodes.version=3
>> edges.version=5
>> geometry.version=3
>> locationIndex.version=2
>> nameIndex.version=2
>> 
>> 
>> Nutiteq says they have generated their example with Graphhopper v0.3, when I 
>> do this the node file is in version 2, instead of version 3, which throws an 
>> error in the SDK. Also, the other files are in versions too early:
>> nodes.version=2
>> edges.version=4
>> geometry.version=2
>> locationIndex.version=2
>> nameIndex.version=2
>> 
>> 
>> When I try GraphHopper v0.4, an exception get thrown in the load() function 
>> of GraphHopper 
>> (https://github.com/nutiteq/hellomap3d/blob/master/AdvancedMap3D/src/main/java/com/nutiteq/advancedmap/activity/GraphhopperRouteActivity.java),
>>  as the version of the edges (7) is too new and unexpected:
>> graph.dimension=2
>> nodes.version=3
>> edges.version=7
>> geometry.version=3
>> locationIndex.version=2
>> nameIndex.version=2
>> 
>> I have not been able to find a release between 0.3 and 0.4, at which point 
>> in the development was the version of the files changed so that I can work 
>> from that version in the github repo? Would there be an easier way to 
>> generate a gh package with the versions numbers above which the SDK expects?
>> Thank you very much in advance,
>> Christian
>> 
>> 
>> 
>> _______________________________________________
>> GraphHopper mailing list
>> [email protected]
>> https://lists.openstreetmap.org/listinfo/graphhopper
> 
> _______________________________________________
> GraphHopper mailing list
> [email protected]
> https://lists.openstreetmap.org/listinfo/graphhopper

_______________________________________________
GraphHopper mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/graphhopper

Reply via email to