{ Community }
  • Academy
  • Docs
  • Developers
  • Resources
    • Community Articles
    • Apigee on GitHub
    • Code Samples
    • Videos & eBooks
    • Accelerator Methodology
  • Support
  • Ask a Question
  • Spaces
    • Product Announcements
    • General
    • Edge/API Management
    • Developer Portal (Drupal-based)
    • Developer Portal (Integrated)
    • API Design
    • APIM on Istio
    • Extensions
    • Business of APIs
    • Academy/Certification
    • Adapter for Envoy
    • Analytics
    • Events
    • Hybrid
    • Integration (AWS, PCF, Etc.)
    • Microgateway
    • Monetization
    • Private Cloud Deployment
    • 日本語コミュニティ
    • Insights
    • IoT Apigee Link
    • BaaS/Usergrid
    • BaaS Transition/Migration
    • Apigee-127
    • New Customers
    • Topics
    • Questions
    • Articles
    • Ideas
    • Leaderboard
    • Badges
  • Log in
  • Sign up

Get answers, ideas, and support from the Apigee Community

  • Home /
  • BaaS/Usergrid /
avatar image
0
Question by Amol Bharti · Feb 24, 2015 at 06:33 PM · 21.4k Views apigee edgegeolocation query

How to get Longitude and latitude of a location using zipcode

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?

Comment
Add comment
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Close

5 Answers

  • Sort: 
avatar image
1
Best Answer

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.

Comment
Add comment · Link
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0
Best Answer

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.

Comment
Add comment · Link
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
1

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

Comment
Add comment Show 2 · Link
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Amol Bharti · Feb 25, 2015 at 05:45 AM 0
Link

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.

avatar image Carlos Eberhardt ♦ Amol Bharti · Feb 25, 2015 at 03:29 PM 0
Link

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.

avatar image
0

Answer by amuramoto · Feb 25, 2015 at 12:07 AM

Hi Amol

Geolocation supports latitude/longitude only.

Comment
Add comment · Link
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
-1

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.

Comment
Add comment · Link
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Follow this Question

Answers Answers and Comments

11 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

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

Upper limit on "location within" queries in BaaS? 1 Answer

  • Products
    • Edge - APIs
    • Insights - Big Data
    • Plans
  • Developers
    • Overview
    • Documentation
  • Resources
    • Overview
    • Blog
    • Apigee Institute
    • Academy
    • Documentation
  • Company
    • Overview
    • Press
    • Customers
    • Partners
    • Team
    • Events
    • Careers
    • Contact Us
  • Support
    • Support Overview
    • Documentation
    • Status
    • Edge Support Portal
    • Privacy Policy
    • Terms & Conditions
© 2021 Apigee Corp. All rights reserved. - Apigee Community Terms of Use - Powered by AnswerHub
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Create an article
  • Post an idea
  • Spaces
  • Product Announcements
  • General
  • Edge/API Management
  • Developer Portal (Drupal-based)
  • Developer Portal (Integrated)
  • API Design
  • APIM on Istio
  • Extensions
  • Business of APIs
  • Academy/Certification
  • Adapter for Envoy
  • Analytics
  • Events
  • Hybrid
  • Integration (AWS, PCF, Etc.)
  • Microgateway
  • Monetization
  • Private Cloud Deployment
  • 日本語コミュニティ
  • Insights
  • IoT Apigee Link
  • BaaS/Usergrid
  • BaaS Transition/Migration
  • Apigee-127
  • New Customers
  • Explore
  • Topics
  • Questions
  • Articles
  • Ideas
  • Badges