With the attached patch,
the Geocoder module may provide the following API Url endpoints (with Json output), to be consumed for performing direct Geocode and Reverse Geocode operations respectively, allowing also easy and custom implementation of Geocode Autocomplete inputs to third party (dependent) modules.
Geocode
This endpoint allows to process a Geocode operation (get Geo Coordinates from Addresses) on the basis of an input Address, the operational Geocoders and an (optional) output Format (Dumper).
Path: '/geocoder/api/geocode'
Method: GET
Access Permission: 'access geocoder api endpoints'
Successful Response Body Format: json
Reverse Geocode
This endpoint allows to process a Reverse Geocode operation (get an Address from Geo Coordinates) on the basis of an input string of atitude and Longitude coordinates, the operational Geocoders and an (optional) output Format (Dumper).
Path: '/geocoder/api/reverse_geocode'
Method: GET
Access Permission: 'access geocoder api endpoints'
Successful Response Body Format: json
NOTE:
The patch updates/integrates the Readme.md file with API Endpoints use parameters details.
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | geocoder_api_url_endpoints_2_x_3077008_7.patch | 13.21 KB | itamair |
Comments
Comment #2
itamair commentedComment #3
itamair commentedComment #4
itamair commentedComment #5
itamair commentedComment #6
itamair commentedSwitched too "geocoder" parameter name (singular) ...
Comment #7
itamair commentedadded 'formatted_address' and 'geometry' properties to standard "array" geocoder outputs format, to harmonize to the googlemaps geocoder output.
Comment #9
itamair commentedCommitted into dev and into new 8.x-2.3 release.