Hi Pieter
Thanks for your answer, but my question was incorrect, Sorry
In fact, with TMSFNCGeocoding component, I try to obtain the name of a localisation in different language.
I am using as service Here (gsHere).
Today, I succeed :)
However, I obtain a "curious" result with english
This is the code send and the result (Edit2Text = 'Anvers, Belgique' ) :
TMSFNCGeocoding1.GetGeocoding(Edit2.Text, nil, 'fr-FR', nil, 'fr-FR', mlmLanguage);
ResultString =
{"items":[{"title":"Anvers, Flandre, Belgique","id":"here:cm:namedplace:20204382","resultType":"locality","localityType":"city","address":{"label":"Anvers, Flandre, Belgique","countryCode":"BEL","countryName":"Belgique","stateCode":"VLG","state":"Flandre","county":"Anvers","city":"Anvers","postalCode":"2000"},"position":{"lat":51.22212,"lng":4.39769},"mapView":{"west":4.21795,"south":51.14343,"east":4.49824,"north":51.3777},"scoring":{"queryScore":1.0,"fieldScore":{"city":1.0}}}]}
TMSFNCGeocoding1.GetGeocoding(Edit2.Text, nil, 'es-ES', nil, 'es-ES', mlmLanguage);
ResultString =
{"items":[{"title":"Amberes, Flandes, Bélgica","id":"here:cm:namedplace:20204382","resultType":"locality","localityType":"city","address":{"label":"Amberes, Flandes, Bélgica","countryCode":"BEL","countryName":"Bélgica","stateCode":"VLG","state":"Flandes","county":"Amberes","city":"Amberes","postalCode":"2000"},"position":{"lat":51.22212,"lng":4.39769},"mapView":{"west":4.21795,"south":51.14343,"east":4.49824,"north":51.3777},"scoring":{"queryScore":1.0,"fieldScore":{"city":1.0}}}]}
TMSFNCGeocoding1.GetGeocoding(Edit2.Text, nil, 'nl-NL', nil, 'nl-NL', mlmLanguage);
ResultString =
{"items":[{"title":"Antwerpen, Vlaanderen, België","id":"here:cm:namedplace:20204382","resultType":"locality","localityType":"city","address":{"label":"Antwerpen, Vlaanderen, België","countryCode":"BEL","countryName":"België","stateCode":"VLG","state":"Vlaanderen","county":"Antwerpen","city":"Antwerpen","postalCode":"2000"},"position":{"lat":51.22212,"lng":4.39769},"mapView":{"west":4.21795,"south":51.14343,"east":4.49824,"north":51.3777},"scoring":{"queryScore":1.0,"fieldScore":{"city":1.0}}}]}
As you can see, it is correct. But when I request in english, the result is wrong ..
TMSFNCGeocoding1.GetGeocoding(Edit2.Text, nil, 'en-GB', nil, 'en-GB', mlmLanguage);
ResultString =
{"items":[{"title":"Antwerpen, Vlaanderen, België","id":"here:cm:namedplace:20204382","resultType":"locality","localityType":"city","address":{"label":"Antwerpen, Vlaanderen, België","countryCode":"BEL","countryName":"België","stateCode":"VLG","state":"Vlaanderen","county":"Antwerpen","city":"Antwerpen","postalCode":"2000"},"position":{"lat":51.22212,"lng":4.39769},"mapView":{"west":4.21795,"south":51.14343,"east":4.49824,"north":51.3777},"scoring":{"queryScore":1.0,"fieldScore":{"city":1.0}}}]}
Is the language parameter 'en-GB' is false ? (the result is the same with 'en-US) ?
regards
olivier