Request a location from a structured address and display it on the map.
This example makes a geocode request and retrieves the latitude, longitude and complete address details of 425 Randolph St, Chicago, IL based on partial address information. Two addresses are found - 425 E Randolph St., and 425 W Randolph St. A clickable marker is placed on each location found.
Access to the geocoding service is obtained from the H.service.Platform
by calling getSearchService()
. The geocode()
method is used
to find a location by passing in the relevant values to the qq
parameter (i.e. country
, city
,
street
and housenumber
) as defined in
Geocoding and Search API v7
.
The styling and display of the response is under the control of the developer.