ConcourseConnect

Open Source Initiative (OSI) PostgreSQL Java

GET location

Returns information for a given location. A location is either a geolocation or a street address.

This feature is not installed on ConcourseConnect installations by default.

URL

https://demo.onsocialcloud.com/api/location

Parameters

Returns the nearest street address for the specified latitude and longitude:

latitude

The latitude value in decimal form

longitude

The longitude value in decimal form

Returns the latitude and longitude for the specified location:

street

The street address

city

The city

state

The state or providence

postalCode

The postal code

country

The full country name or the country in ISO3 format

Optional Parameters:

fields

A comma-separated list of fields to limit the results to; area, latitude, longitude, street, city, state, postalCode, country

Example Request

https://www.concursive.com/api/location?format=json&latitude=36.847674&longitude=-76.290442&fields=latitude,longitude,street,city,state,postalCode,country

Example Result

[  
   {  
      "status":{  
         "code":0,
         "name":"",
         "count":1,
         "total":1
      },
      "objectList":[  
         {  
            "recordNumber":1,
            "recordName":"location",
            "latitude":"36.84774",
            "longitude":"-76.29052",
            "street":"215 E City Hall Ave",
            "city":"Norfolk",
            "state":"VA",
            "postalCode":"23510",
            "country":"UNITED STATES"
         }
      ]
   }
]

Sign in to add your comment.