<div dir="ltr">Thank you for your help,<div><br></div><div><div>For the name of the street I was thinking to the same solution that Peter explain.</div></div><div>So I will try this one.</div><div><br></div><div>I cannot use online so sorry but I cannot use nominatim.</div>
<div>Your proposition for use index of town seem interresting even if it will increase data space for the new data to store.</div><div>And also town are not always rectangular and so some mistake on the town name can appear...</div>
<div><br></div><div>Anyway for the moment I will implement the solution for the street name and I will later search for the town name.</div><div><br></div><div>Thank you for your help Peter and Thomas.</div><div><br></div>
<div>Max </div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/11/29 Thomas Ferris Nicolaisen <span dir="ltr"><<a href="mailto:tfnico@gmail.com" target="_blank">tfnico@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Fri, Nov 29, 2013 at 10:16 AM, Thomas Ferris Nicolaisen<br>
<<a href="mailto:tfnico@gmail.com">tfnico@gmail.com</a>> wrote:<br>
> On Fri, Nov 29, 2013 at 9:50 AM, Maxime Guyon <<a href="mailto:gmaxi17@gmail.com">gmaxi17@gmail.com</a>> wrote:<br>
>><br>
>> Hello,<br>
>><br>
>> I want to know if it's possible to get the name of the street corresponding to a GPS point and if it's also possible to get the corresponding Town of the street.<br>
<br>
</div>Well, now I just realized I totally misread your question :)<br>
<br>
I would have a closer look at the response that the maps application<br>
gets back from the geocoding service. For example, when I click in<br>
Berlin somewhere, I see (using the browser's developer tools) that<br>
this request is sent:<br>
<br>
<a href="http://nominatim.openstreetmap.org/reverse?lat=52.514807&lon=13.389947&format=json&zoom=16&json_callback=reverse_callback5&callback=reverse_callback5&_=1385716788366" target="_blank">http://nominatim.openstreetmap.org/reverse?lat=52.514807&lon=13.389947&format=json&zoom=16&json_callback=reverse_callback5&callback=reverse_callback5&_=1385716788366</a><br>
<br>
And this response arrives:<br>
<br>
reverse_callback5({"place_id":"45007684","licence":"Data \u00a9<br>
OpenStreetMap contributors, ODbL 1.0.<br>
http:\/\/<a href="http://www.openstreetmap.org" target="_blank">www.openstreetmap.org</a>\/copyright","osm_type":"way","osm_id":"35557143","lat":"52.5148644","lon":"13.3911125","display_name":"Franz\u00f6sische<br>
Stra\u00dfe, Berliner Urstromtal, Mitte, Berlin, 10117, Germany,<br>
European Union","address":{"road":"Franz\u00f6sische<br>
Stra\u00dfe","neighbourhood":"Berliner<br>
Urstromtal","suburb":"Mitte","city_district":"Mitte","city":"Berlin","state":"Berlin","postcode":"10117","country":"Germany","country_code":"de","continent":"European<br>
Union"}})<br>
<br>
So using JavaScript you should be able to extract all the information you want.<br>
<div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
GraphHopper mailing list<br>
<a href="mailto:GraphHopper@openstreetmap.org">GraphHopper@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/graphhopper" target="_blank">https://lists.openstreetmap.org/listinfo/graphhopper</a><br>
</div></div></blockquote></div><br></div>