v2 API » location/locate

Given an IP address or postal code, return the nearest location

Usage

  • HTTP method: GET
  • postalcode
    one-of, string — The ZIP or postal code to match
  • ip_address
    one-of, ip — The IP address to match
  • latitude
    one-of, float — The latitude from HTML5
  • longitude
    one-of, float — the longitude from HTML5
  • radius
    optional, integer — The radius to match (in miles)

Example

http://api.sonicliving.com/v2/location/locate?key=mykey&postalcode=94103&ip_address=foo&latitude=foo&longitude=foo&radius=foo

For a live example, visit the API Explorer for location/locate.