Address
Find a geo-location by the address.
GET
https://maps.mogoscorp.com/api/v2/searchbyaddr
JSON
Request
key
Your API Key.
string
keyword
Address to be searched. e.g. keyword=alexandra road
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
type
Type of search 0: Search by name 1: Search by categoty 2: Search by address 3: Search by postal code
int
sx
Longitude of arbitrary locations that are the basis for the search (WGS84). e.g. sx=126.896038
string
sy
Latitude of arbitrary locations that are the basis for the search (WGS84). e.g. sy=37.482901
string
pno
Page number. (Default : 1)
int
cpp
Number of searches per page. (Default : 20)
int
Example
Response
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
Last updated