The document provides instructions for using ZIOMAP's API endpoints. For more information, please visit ziomap.com
https://ziomap-main-db8d725.zuplo.app
Geocoding is the process of converting addresses (like 1600 Amphitheatre Parkway, Mountain View, CA
) into geographic coordinates (like latitude 37.423021 and longitude -122.083739), which you can use to place markers or position the map.
For more information, please visit: https://developers.google.com/maps/documentation/javascript/geocoding
address
The address or place ID to decode
1
Return the detailed information of the location according to the place name or latitude and longitude.
search_by
Accept one of three values: name
(search by name), latlng
(search by latitude and longitude), place_id
(search Google place ID).
For example: search_by=place_id
.
place_id
The Google Place ID, You need to specify the value of search_by as place_id
if you want to use this parameter.
For example: place_id=ChIJa6dZ1PCxj4AR8nZrpMfTpQI
.
latlng
The latitude and longitude coordinates of the location for which information is needed.
You must specify the value of the search_by
parameter as latlng
if you want to use this parameter.
For example: latlng=37.4223928,-122.0841883
.
name
The name of the location needed to retrieve information.
You need to specify the value of the parameter search_by
as name
if you want to use this parameter.
For example: name=10 hang bai
.
1
API service for computing directions between two or more places.
search_by
Accept 1 of 2 values: place_name
(search by location name) or latlng
(search by latitude and longitude of locations).For example: search_by=latlng
mode
Mode of transportation.
Accept 1 of 4 values: driving
, walking
, transit
, bicycling
. For example: mode=bicycling
.
avoid
Optional avoid route options.
Accept 1 of 3 values: ferries
, highways
, tolls
. For example: avoid=tolls
.
origin
Starting point, location name or latlng coordinates. For example: origin=21.0424911,105.7988079
.
destination
Destination, location name or latlng coordinates. For example: destination=20.9867583,105.8658611
1
The Routes API is a service that accepts an HTTPS request and returns either the ideal route between two locations, or distances and travel times for a matrix of routes between different origin and destination locations. For complete list of supported parameters, please visit https://developers.google.com/maps/documentation/routes/reference/rest/v2/TopLevel/computeRoutes
origin
destination
travelMode
routingPreference
polylineQuality
computeAlternativeRoutes
routeModifiers
1
{
"origin": {
"vehicleStopover": false,
"sideOfRoad": false,
"address": "165 Đường Cầu Giấy, Quan Hoa, Cầu Giấy, Hanoi, Vietnam"
},
"destination": {
"vehicleStopover": false,
"sideOfRoad": false,
"address": "10 Phố Hàng Bài, Trang Tien, Hoàn Kiếm, Hanoi, Vietnam"
},
"travelMode": "two_wheeler",
"routingPreference": "traffic_unaware",
"polylineQuality": "high_quality",
"computeAlternativeRoutes": true,
"routeModifiers": {
"avoidTolls": false,
"avoidHighways": false,
"avoidFerries": false,
"avoidIndoor": false
},
"languageCode": "vi",
"regionCode": "vn"
}
You can use autocomplete to give your applications the type-ahead-search behavior of the Google Maps search field. The autocomplete service can match on full words and substrings, resolving place names, addresses, and plus codes.
input
Search query
radius
Radius: Limit the locations within a specified distance (in meters) from the location
parameter.
type
Limit the types of places returned in the result.
Supports the following values: establishment
, address
, geocode
, (cities)
, (regions)
language
The region parameter accepts BCP 47 language tag. Ex: en-US
components
A grouping of places to which you would like to restrict your results. Currently, you can use components to filter by up to 5 countries. Countries must be passed as a two character, ISO 3166-1 Alpha-2 compatible country code. For example: components=country:fr
would restrict your results to places within France. Multiple countries must be passed as multiple country:XX
filters, with the pipe character | as a separator. For example: components=country:us|country:pr|country:vi|country:gu|country:mp
would restrict your results to places within the United States and its unincorporated organized territories.
1