I need to fetch the longitude and latitude of a location using zipcode as an input, Does Apigee geolocation provide any such feature or service?
Answer by Mike Dunker @Google
·
Feb 27, 2015 at 05:33 PM
My recommendation would be to use the Google geocoding service (or something similar), but use it in a script/tool that populates a BaaS collection (name = ZIP code, location = ZIP code's latitude and longitude). You can also use a database/file containing the information as your source (example is http://www.opengeocode.org/download.php#cityzip).
ZIP code lats and longs rarely change -- you could run the tool weekly or even less frequently and probably be fine. Then you'll have access to the data without suffering the latency to call the service every time you need the ZIP lat and long.
Answer by Madhan+Sadasivam
·
Feb 25, 2015 at 07:35 AM
A Geocoding service like Google Geocoding helps you get latitude, longitude from a physical address/zip code.
https://developers.google.com/maps/documentation/geocoding/
https://maps.googleapis.com/maps/api/geocode/json?address=95101
Apigee BaaS (API Services) helps perform geolocation queries when coordinates are available in a Collection.
Answer by Carlos Eberhardt · Feb 25, 2015 at 03:21 AM
API Services does not provide geolocation capabilities, but does support saving location data in an entity in the BaaS and querying location data. See the following doc for more information: http://apigee.com/docs/app-services/content/geolocation
Thanks Carlos, But my requirement is other way around. I need to fetch longitude and latitude from zipcode as an input whereas the document you mentioned has longitude and latitude as input parameters. Do you know any service which can fetch longitude and latitude of a location.
Madhan provided links to the google one below. That's a nice one. Other mapping services I'm sure provide similar. Often weather APIs have a way to do that. Wunderground, e.g. (http://www.wunderground.com/weather/api/d/docs?d=data/geolookup)... I think you have a few options.
Answer by amuramoto · Feb 25, 2015 at 12:07 AM
Hi Amol
Geolocation supports latitude/longitude only.
Answer by Direct mail mart · Dec 27, 2020 at 06:18 AM
The API can use various methods to convert the coordinates into a zip code and nearest street or household to the coordinates, then returning the details of their address. This feature is not currently available in the Google Maps Platform APIs.
Can Usergrid return distance to location in "location within" queries? 2 Answers
Getting Empty entities in response, when requesting for the Data in MBaaS from apigee node.js app. 0 Answers
Can BaaS query results be ordered by location? 2 Answers
error while connecting apigee edge with API Baas using Nodejs 3 Answers