Search code examples
geocodinghere-api

I need assistance for api-here geocoding


I would like to know how to obtain all London postal codes that start with "W2", for example, something like this. We are using the geocode api but in the postalCode parameter it asks for the exact postal code. We have also tried to use the autocomplete api but I also do not get a list of all the postal codes, it does a search in different parameters and it is not what we need.

This need arises because we are changing from MapServer to Nokia Here and with MapServer the api geocoding if it returns a list of all the postal codes

We are using something like this https://autocomplete.geocoder.api.here.com/6.2/suggest.json?app_id=xxxxxx&app_code=xxxxxxx&query=W2&country=GBR

We would need to be able to indicate in the query a complete or partial postal code

this example verifies what we need

By the way, we are using a payment license, how can I request this assistance?


Solution

  • You can constraint search result upto maximum 20 using geocoding autocomplete API with the below parameter

    maxresults = { Valid range: 1 to 20 }
    

    This constraint is as per API design. For detail information kindly go through the below link. https://developer.here.com/documentation/geocoder-autocomplete/topics/resource-suggest.html