logo
Getting Started
API Reference
Geocoding
Place Details
Direction
Routes
Autocomplete
powered by zuplo

ZIOMAP.COM API

The document provides instructions for using ZIOMAP's API endpoints. For more information, please visit ziomap.com

BASE URL
https://ziomap-main-db8d725.zuplo.app

Geocoding

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

Query Parameters

address

required, string

The address or place ID to decode

GET
/geocoding
1

Place Details

Return the detailed information of the location according to the place name or latitude and longitude.

Query Parameters

search_by

required, string

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

optional, string

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

optional, string

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

optional, string

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.

GET
/details
1

Direction

API service for computing directions between two or more places.

Query Parameters

search_by

required, string

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

optional, string

Mode of transportation. Accept 1 of 4 values: driving, walking, transit, bicycling. For example: mode=bicycling.

avoid

optional, string

Optional avoid route options. Accept 1 of 3 values: ferries, highways, tolls. For example: avoid=tolls.

origin

optional, string

Starting point, location name or latlng coordinates. For example: origin=21.0424911,105.7988079.

destination

optional, string

Destination, location name or latlng coordinates. For example: destination=20.9867583,105.8658611

GET
/direction
1

Routes

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

Request Body

origin

required, object

destination

required, object

travelMode

optional, string

routingPreference

optional, string

polylineQuality

optional, string

computeAlternativeRoutes

optional, boolean, default: true

routeModifiers

optional, object
POST
/routes
1
EXAMPLE BODY
{
  "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"
}

Autocomplete

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.

Query Parameters

input

required, string

Search query

radius

optional, number

Radius: Limit the locations within a specified distance (in meters) from the location parameter.

type

optional, string

Limit the types of places returned in the result. Supports the following values: establishment, address, geocode, (cities), (regions)

language

optional, string

The region parameter accepts BCP 47 language tag. Ex: en-US

components

optional, string

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.

GET
/autocomplete
1