A JGeocodingResult object
If geocoding is not enabled, or if an unexpected error occurs
// Display on the map the first match received
JMap.Event.Geocoding.on.success(
"custom-geocoding-success",
params => {
if (params.results.length > 0) {
JMap.Geocoding.displayForwardSearchResult(params.results[0])
}
}
)
JMap.Geocoding.forwardSearch("1440 Saint-Catherine St W #522, Montreal, Quebec H3G 1R8", {autoComplete: false, fuzzyMatch: false, proximity: null})
JMap.Geocoding.displayForwardSearchResult
Will display on the map the result of a JMap.Geocoding.forwardSearch single result.