Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

/geolookup

Retrieves a nearby place name given a lat/lng

*Note: currently radius is not used, also the location returned is just a random Google response near the given lat/lng

Possible Methods

POST

Arguments

n/a

Json Object
{
    Double latitude;
    Double longitude;
    Double radius
}

 

Example
curl -b cookies.txt -X POST -d '{"latitude":36.4, "longitude":-25.7665, "radius":12}' "http://localhost:8185/geolookup" > response.txt

 

Example Response

curl -b cookies.txt -X POST -d '{"latitude":36.4, "longitude":-25.7665, "radius":12}' "http://localhost:8185/geolookup" > response.txt

{
    "response": {
        "action": "GeoLookup",
        "success": true,
        "message": "Approximate GeoLocation returned if found",
        "time": 0
    },
    "data": {
        "location_name": "Columbus, OH"
    }
}
  • No labels