[GraphHopper] Graphhopper ios - Doubt about Translation folder

Jordi Urmeneta jordi.urmeneta at gmail.com
Mon May 11 12:13:12 UTC 2015


Hello,

The path indicated for graphhopper files is:
https://github.com/graphhopper/graphhopper-ios/blob/master/graphhopper-ios-sample/graphhopper-ios-sample/Directions.m#L78

On the other hand, as you said the translation files are loaded from
classpath, but I don't know how to change it it ios.

Concretely, this line appears inside the doImport method, which I suppose
is related with the translations path:

trMap doImportWithJavaIoInputStream:[[IOSClass
classWithClass:[TranslationMap class]] getResourceAsStream:JreStrcat("$$",
locale, @".txt")]];

Any idea about how to change it?


Thank you.

Best regards,

Jordi Urmeneta.

On 11 May 2015 at 13:13, <calinseciu at gmail.com> wrote:

>  The initialization of GraphHopper
> <https://github.com/graphhopper/graphhopper-ios/blob/master/graphhopper-ios-sample/graphhopper-ios-sample/Directions.m#L80>
> (in the sample app) happens here
> https://github.com/graphhopper/graphhopper-ios/blob/master/graphhopper-ios-sample/graphhopper-ios-sample/Directions.m#L80 and
> no paths are set at this time.
>
> The actual loading of the translation files happen in GraphHopper itself,
> I think here
> https://github.com/graphhopper/graphhopper/blob/ios-compat/core/src/main/java/com/graphhopper/GraphHopper.java#L92
> So as you can see the `doImport()` method loads the translation files from
> classpath.
>
> I am not sure how this can be changed, but I think this is a question more
> suited for GraphHopper than the iOS port.
>
>
> *From:* Jordi Urmeneta <jordi.urmeneta at gmail.com>
> *Sent:* ‎Monday‎, ‎May‎ ‎11‎, ‎2015 ‎1‎:‎42‎ ‎PM
> *To:* GraphHopper <graphhopper at openstreetmap.org>
>
> Hello,
>
> Do you happen to know if it's possible to change the route of the
> translations? I mean, the translations folder is needed to be always in the
> same path.
>
> Could I indicate another path?
>
>
>
> Thank you!!
>
>
> Best regards,
>
> Jordi Urmeneta.
>
>
> _______________________________________________
> 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/20150511/d3aa5b5c/attachment.html>


More information about the GraphHopper mailing list