Namespace Geo
Class for retrieving location-based data.
Constructor Attributes | Constructor Name and Description |
---|---|
Method Attributes | Method Name and Description |
---|---|
<static> |
Geo.getCoordinatesFromZip(zip)
Gets the latitude and longitude for a U.S.
|
<static> |
Geo.getNearbyZips(zip, radius)
Gets the surrounding zip codes of a given zip code
|
Method Detail
<static>
{Object}
Geo.getCoordinatesFromZip(zip)
Gets the latitude and longitude for a U.S. postal code.
- Parameters:
- {String} zip
- The zip code to get lat/long data for
- Returns:
- An Object containing
latitude
andlongitude
properties.
<static>
{Array}
Geo.getNearbyZips(zip, radius)
Gets the surrounding zip codes of a given zip code
- Parameters:
- {String} zip
- The zip code to center on
- radius
- Returns:
- An Array of strings of the surrounding zip codes