Is there a way to receive the ISO Alpha-2 country code from the HERE autocomplete API instead of the 3-letter ISO country codes? The documentation (https://developer.here.com/documentation/geocoder-autocomplete/dev_guide/topics/resource-suggest.html) doesn't say anything about this but other APIs from HERE do return the Alpha-2 code.
If the API itself doesn't do it, is there another API we can use to convert the country code?
Any help appreciated.
Unfortunately no, the API would return always a 3 Letter ISO country code. There is no API available from HERE APIs to convert the codes either. It should be possible to create a mapping based on ISO service directly (https://www.iso.org/obp/ui/#search)
Related
I currently have a POC working that retrieves places information using the Places HERE api by passing Lat and Long values. Our addresses are being converted to lat and long before the api is called and we fear we might be losing precision in the process. Instead of feeding the API the coordinates, is there a way to send the actual address and get the address information back? Business name, type, etc?
res = requests.get('https://places.cit.api.here.com/places/v1/discover/here?app_id=<>&app_code=<>&at='+str(lat)+','+str(long))
Based on what I see in the API docs (https://developer.here.com/documentation/places/dev_guide/topics_api/resource-search.html) the answer is no. You can see more detail here as well: https://developer.here.com/documentation/places/dev_guide/topics/location-contexts.html. Is there a particular example of where you think geocoding is returning bad results?
Use Geocoder API to get coordinates for address and then use these coordinates to make a request to Places API.
Is it possible to get the route restrictions of a particular area/city using here api?
My objective is to visualise the route restrictions of a particular city.
There is a parameter to avoid areas
avoidAreas
and to avoid countries excludeCountries=BOL,PRY,URY which takes a list of ISO 3166-1-alpha-3 country codes.
Please find the source of documentation.
Hope this helps!
Map Tile API can return map tiles with truck restrictions (you need your own apikey in order to see that tile):
https://4.base.maps.ls.hereapi.com/maptile/2.1/trucknopttile/newest/normal.day/10/301/384/512/png8?apikey={YOUR_API_KEY}
I'm using HERE maps Geocoding API for address normalization. Geocoding API always returning 5 digit zip code as response for US address and I'm looking for 9 digit zip codes. I couldn't find any related information in documentation.
Does HERE maps Geocoding API have this capability? If yes, how to achieve this?
Any help on this is appreciated.
What about calls to
https://geocode.search.hereapi.com/v1/geocode?q=ADDRESS#########&apiKey=KEY#########
or
https://geocode.search.hereapi.com/v1/geocode?q=ADDRESS##########&additionaldata=IncludeZipAddOn,true&apiKey=KEY##########
I'm still just getting 5 digit zips back from there.
I am trying to geocode a street interception through Here Geocoder API Forward Geocoding. However, with no success.
There is some example in the documentation:
https://developer.here.com/api-explorer/rest/geocoder/latitude-longitude-intersection
There is an obvious way to do what I want.However, there is a proxy endpoint, which I am not allowed to change and it accepts from client and passes to Here API only free form input.
I tried with the following string for my free form input value,it is the same as the documentation example:
State # Madison, Chicago
But got 0 results.
I just wonder if that is possible at all through Here Forward Geocoding-it seems difficult for implementation without some restriction to the free-form input format?Thanks in advance!
I got the result for street intersection with it, can you please try by using your appkey, id.
https://geocoder.api.here.com/6.2/geocode.json?city=Chicago&street=State%20and%20Madison&app_id=xxxx&app_code=xxxx&gen=9
if the search needs to be in free form, then below API call can work too, but here the search match level is based out of the city, not specific to street.
https://geocoder.api.here.com/6.2/geocode.json?searchtext=200%20S%20Mathilda%20Sunnyvale%20CA&app_id=xxxx&app_code=xxxx&gen=9
I am using Google Maps API v3 Distance. It has worked well for the majority of the addresses in my database. However, it seems like some addresses just aren't available in Google Maps, and it seems to pick the closest street address match which could be way off. I would expect Google Maps in this case to provide an answer based on city and zip. Does anyone have a solution? I've thought of double checking mathematically by geocode and checking Yahoo maps(or other sites) for the ones that are way off but that adds processing time and is not a very elegant solution. There must be some setting I'm missing or other such work around.
Thanks!
BTW shout out to the new Json Serializer! Well it was new to me anyways.
How are you formatting the address you are sending ?
I've used the Google Maps API to do some reverse geocoding and if a street could not be found (due to a typo or what have you) Google would return the lat lng for the historic town center.
I structured addresses as Country, city cityzip, street nr.
You should use the location_type of the geometry object to determine what accuracy was returned. I suggest checking to see if the returned resulsts indicate whether a result is anything other than ROOFTOP or RANGE_INTERPOLATED.