I. Term of use

Term of use agreement

  • You understand, commit and agree that the use of the service is entirely voluntary and done by you.
  • You are not allowed to use Maps Javascript API for posting prohibited content, the content that The Government of Vietnam does not allow to circulate, do not use the service for the purpose of circulating, sharing, providing information that encourage, or guide a criminal offense, violate the rights of any party or violate any local, national or international law.
  • You are not allowed to change, edit, delete the logo, change the link of the logo or map attributes that we provide.
  • You are solely responsible for the interactions with other users of the service. We reserve the right, but has no obligation, to monitor disputes between you and other users of the service.
  • We collect personal information when you register for the service or in other words you have voluntarily provided such information. Your personal information may also be used for research and analysis to operate and improve our services. We may also share information with third parties in certain special cases, such as required by law, to prevent fraud or losses and ensuring the security of our networks and services.
  • We may terminate the membership, delete your profile and any content or information that you have already registered during service usage for any reason, or for no reason, at any given time as decided by the company, with or without prior notice.
  • We reserve the right to change, add or remove these terms of use at any time. If such a change does not suit you, you can stop using the service. If you continue to use the service, that means you agree with the new terms.

Registration and using

Registration and use of the service means you've actually read, understand and agree to the terms of use stated above.

II. Portal

After logging into the system, user chooses PORTAL to register services provided by our system. Overview of the Portal interface as follow:

The Overview section displays all registered services. Users can click the Details button to view the details of the registered service packages.

To use the services, users must register the service packages. The process of registration of the service packages is done through two steps: 1. Service Registration, 2. Authentication Key as follows:

1. Service Registration

To use the service, user must first register for the service. Here are the steps:

- Step 1: Select "Register\System Services"

This section displays system services, user selects a service package and click the Details button to view the details of each service package. After that, user can register this service package.

- Step 2: Click on the “Register” button to begin the service package registration

After viewing details of the service package, user clicks on Register button to register this service package.

- Step 3: Register service

At this point, user checks the registration information such as name, service package name, expiration date... Then user clicks the Register button to finish the service package registration process.

2. Authentication Key

When request to our server, it must have an Authentication Key attached to Header with RegisterKey name. For each service, user can create many authentication keys. To create authentication key, user do as the following steps:

- Step 1: Select "Register\Authentication Keys"

This section displays username and registered service package. User clicks the Add button to add authentication key.

- Step 2: Create authentication key

At this point, user can see the details of: registered username, registered service package, generated authentication key... Then user can press the Add button to finish the process of creating authentication key.

3. Statistics

This section helps users with statistics on the amount of Request of each function. User can select the statistics date and then click the View button to see the detailed statistics.

III. Service Functions

1. Function call

For example, calling ReverseGeoCoding function. There are two ways to call the function: Soap and Rest.

1.1. Soap

Soap Request Message

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/">
                    <soapenv:Header/>
                    <soapenv:Body>
                    <tem:ReverseGeoCoding>
                    <tem:x>106.2</tem:x>
                    <tem:y>17.7949506</tem:y>
                    <tem:radius>2000</tem:radius>
                    </tem:ReverseGeoCoding>
                    </soapenv:Body>
</soapenv:Envelope>

Soap Response Message

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
                    <s:Body>
                    <ReverseGeoCodingResponse xmlns="http://tempuri.org/">
                    <ReverseGeoCodingResult xmlns:a="http://schemas.datacontract.org/2004/07/StreetFinderService" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
                    <a:District>Huyện Tuyên Hóa</a:District>
                    <a:Province>Tỉnh Quảng Bình</a:Province>
                    <a:Ward>Xã Châu Hóa</a:Ward>
                    <a:Street>Đường Lâm Lang</a:Street>
                    </ReverseGeoCodingResult>
                    </ReverseGeoCodingResponse>
                    </s:Body>
</s:Envelope>

1.2. Rest

Rest Request Message

{
    "Radius": 2000,
    "X": 106.2,
    "Y": 17.7949506
}

Rest Response Message

{
    "District": "Huyện Tuyên Hóa",
    "Province": "Tỉnh Quảng Bình",
    "Ward": "Xã Châu Hóa",
    "Street": "Đường Lâm Lang"
}

2. Functions specification

This shows full information about our service functions. Users can click Functions specification to view the service functions that want to register.

API Document 2.0

Please click on Functions specification to view.

IV. Maps Javascript API

1. Registration

1.1. Introduction

Maps Javascript API helps integrating maps into your website. You only need to register to get a key to use the API. Once gets key, you can develop your applications according to our guide.

1.2. Target users

This document is written for those who know Javascript and Object-Oriented Programming at the basic level or higher. You can make your website similar to https://gisapi.tphcm.gov.vn/ page if you take advantage of all the features of Maps JavaScript API.

1.3. Registration and using

To use Maps Javascript API you must first register service and create an authentication key.

After receiving the key, use the API key in the following way (eg API Key is: ABCDEFG):

<script type="text/javascript" src="https://gisapi.tphcm.gov.vn/developers/Scripts/HCMMapsAPI2.js?key=ABCDEFG">
</script>

By this time you can use the classes, functions in the Maps JavaScript API. You can refer to the API Reference Document to better understand these class library and functions.

2. API Reference Document

Please click on API Reference Document to view.

Maps Javascript API Document

Please click on API Details to view.

3. Examples