Geocoding

Convert geo-location to address.

Method
Request
Response

GET

https://maps.mogoscorp.com/api/v2/geocoding

JSON

Request

Parameter (Required)
Descripton
Remarks

key

Your API Key.

string

cx

Longitude of the current location (WGS84). e.g. cx=126.896038

string

cy

Latitude of the current location (WGS84). e.g. cy=37.482901

string

lang

Search Language. th : Thailand en : English kr : Korean (Default : en)

string

Parameter (Optional)
Description
Remarks

pno

Page number. (Default : 1)

int

cpp

Number of searches per page. (Default : 20)

int

Example

// Some code

Response

Parameter
Description
Remark

err

If there is an error, it's the contents of the error

string

stype

The type of search used for the search. (Internal use only)

int

sort

The sort type used in the search. (Internal use only)

int

pno

Page number.

int

cpp

Number of searches per page.

int

total

Number of items searched

int

items

List of retrieved results.

array

id

Search ID.

string

flg

Type of data. (Internal use only)

int

pid

Parent ID. (currently Not used)

string

src

Source type

int

cate

Large classification code. (Internal use only)

string

dist

Distance (unit : meter)

int

entx

Longitude of entry point (WGS84).

double

enty

Latitude of entry point (WGS84).

double

name

Display name.

string

posx

Longitude of center.

double

posy

Latitude of center.

double

addr1

Address.

string

addr2

Another address.

string

cate2

Division code. (currently Not used)

string

phone

Phone number.

delimiter comma (,).

string

props

POI Properties.

(currently Not used)

array

hassub

Sub POI Existence (0: None, Other : Yes) (currently Not used)

int

addr_en

English address

string

entries

Multiple entry points list. (currently Not used)

array

name_en

English name

string

geom_type

geometry type

string

Example

{
    "err": null,
    "stype": 4,
    "sort": 2,
    "total": 2,
    "pno": 1,
    "cpp": 2,
    "src_type": null,
    "data_type": 0,
    "items": [
        {
            "id": "899000300",
            "name": null,
            "name_en": null,
            "addr1": "222-8 Guro-dong Guro-gu Seoul",
            "addr2": "31 Digital-ro 30-gil Guro-gu Seoul",
            "addr3": "Guro-dong Guro-gu Seoul",
            "cate": null,
            "cate2": null,
            "geom": "{\"type\":\"Point\",\"coordinates\":[126.896046586,37.482876299]}",
            "posx": 126.89604658558389,
            "posy": 37.48287629854469,
            "entx": 126.89560218600175,
            "enty": 37.48282074177592,
            "hassub": 0,
            "phone": null,
            "pid": null,
            "entries": null,
            "props": null,
            "dist": 3,
            "wgpt": null,
            "src": 8,
            "flg": 3            
        },
        ...
    ]
}

For "lang" parameter, you can find all language codes at https://maps.mogoscorp.com/api/v2/search/langs?key={YOUR_API_KEY} However, we currently provide services only for "ko", "th", "en"

The MOGOS Maps API requires an API Key, which can be obtained from the MOGOS Console website or contact [email protected].

Last updated