This API is for efficient usage of the Google Maps API, utilizing Redis to minimize usage costs.
The query and its result will be stored in Redis for 30 days. During this period, if the same query is repeated, the stored result will be returned instead of querying Google, thus saving the corresponding cost.
For this API to work it needs to get two custom related to security variables in header:
For this API to work it needs an extra variable in header that shows the language you want the result to be:
This API has three possible uses:
Returns a place's information in JSON format given its place id.
The URL for this case:
{baseURL}/googlePlaceDetails.php?place_id={place_id}
Example:
www.example.com/googlePlaceDetails.php?place_id=ChIJR4IEy557cg0RkEp94XvSAxw
Returns some autocomplete suggestions in JSON format based on postal code and country information. It's important to know that country information must be in ISO format.
The URL for this case:
{baseURL}/googleAutocomplete.php?zip_code={zipCode}&country={countryISO}
Example:
www.example.com/googleAutocomplete.php?zip_code=29&country=ES
Returns some autocomplete suggestions in JSON format based on latitude and longitude information.
The URL for this case:
{baseURL}/googleCoordinates.php?lat={latitude}&lng={longitude}
Example:
www.example.com/googleCoordinates.php?lat=39.96&lng=-0.24