0% found this document useful (0 votes)
103 views4 pages

ADD DeletePlaceAPIs

The document describes the Google Maps Place API for adding, retrieving, and deleting place data in JSON and XML formats. The API uses HTTP requests to submit place details to a base URL and receive a response containing a place ID, status, and other metadata. Sample requests and responses are provided to demonstrate using the API to add a place and later delete it by place ID.

Uploaded by

Rahul Gehlot
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
103 views4 pages

ADD DeletePlaceAPIs

The document describes the Google Maps Place API for adding, retrieving, and deleting place data in JSON and XML formats. The API uses HTTP requests to submit place details to a base URL and receive a response containing a place ID, status, and other metadata. Sample requests and responses are provided to demonstrate using the API to add a place and later delete it by place ID.

Uploaded by

Rahul Gehlot
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Google Maps Add API (JSON Format):

Complete URL :http://216.10.245.166/maps/api/place/add/json?key= qaclick123

Base URL : http://216.10.245.166


Resource : /maps/api/place/add/json
Parameters: key

Http request : POST

Note : Key value is hardcoded and it is always qaclick123

Sample Body :
{

"location":{

"lat" : -38.383494,

"lng" : 33.427362

},

"accuracy":50,

"name":"Frontline house",

"phone_number":"(+91) 983 893 3937",

"address" : "29, side layout, cohen 09",

"types": ["shoe park","shop"],

"website" : "http://google.com",

"language" : "French-IN"

Sample Response

{
"status": "OK",
"place_id": "928b51f64aed18713b0d164d9be8d67f",
"scope": "APP",
"reference": "736f3c9bec384af62a184a1936d42bb0736f3c9bec384af62a184a1936d42bb0",
"id": "736f3c9bec384af62a184a1936d42bb0"
}

Rahul_Respose{
"status": "OK",
"place_id": "b976ab184a720112c9761bb920a3c75d",
"scope": "APP",
"reference": "7a0465dfd1024c4c15000814e03c60377a0465dfd1024c4c15000814e03c6037",
"id": "7a0465dfd1024c4c15000814e03c6037"
}

Sample Response(Rahul):
{
"status": "OK",
"place_id": "1ca2489b6977b1a280b17d5d3ef116a9",
"scope": "APP",
"reference": "7dfa6bdc9966fe45d4a261c90008112c7dfa6bdc9966fe45d4a261c90008112c",
"id": "7dfa6bdc9966fe45d4a261c90008112c"
}

Google Maps Add API (XML Format):


Complete URL :http://216.10.245.166/maps/api/place/add/xml?key= qaclick123

Base URL : http://216.10.245.166


Resource : /maps/api/place/add/xml
Parameters: key

Http request : POST

Note : Key value is hardcoded and it is always qaclick123

Sample Body :
<?xml version="1.0" encoding="UTF-8" ?>
<root>
<location>
<lat>-38.383494</lat>
<lng>33.427362</lng>
</location>
<accuracy>50</accuracy>
<name>The Mens store</name>
<phone_number>(+91) 983 893 3937</phone_number>
<address>Anna Salai, Chennai</address>
<types>shoe park</types>
<types>kadai</types>
<website>http://google.com</website>
<language>tamil-IN</language>
</root>

Sample Response
<?xml version="1.0"?>
<response>
<status>OK</status>
<place_id>fdd2f7bf74afae3f1462833d43a53678</place_id>
<scope>APP</scope>
<reference>326f3c1e773a000ee7b0f1ed529f900e326f3c1e773a000ee7b0f1ed529f900e</reference>
<id>326f3c1e773a000ee7b0f1ed529f900e</id>
</response>

Sample Response(Rahul):

<?xml version="1.0"?>
<response>
<status>OK</status>
<place_id>cb6d7fd910fdf2fcc56221bbc204c8d5</place_id>
<scope>APP</scope>
<reference>1d05895093ec9ea49342bca7b176c2f11d05895093ec9ea49342bca7b176c2f1</reference>
<id>1d05895093ec9ea49342bca7b176c2f1</id>
</response>

Google Maps Delete API (JSON):

Complete URL : http://216.10.245.166/maps/api/place/delete/json?key=qaclick123

Base URL : http://216.10.245.166


Resource : /maps/api/place/delete/json
Parameters: key

Http request : POST

Sample Body :
{
"place_id":"928b51f64aed18713b0d164d9be8d67f" //(This value comes from Add place response)
}

Sample Response

{
"status": "OK"
}

Google Maps Delete API (XML):


Complete URL : http://216.10.245.166/maps/api/place/delete/xml?key=qaclick123

Base URL : http://216.10.245.166

Resource : /maps/api/place/delete/xml
Parameters: key

Http request : POST

Sample Body :
<?xml version="1.0" encoding="UTF-8" ?>
<root>
<place_id>fdd2f7bf74afae3f1462833d43a53678</place_id>
</root>

Sample Response

<?xml version="1.0"?>
<response>
<status>OK</status>
</response>

You might also like