What is the difference between this two Google Maps Geocoding API URL?

i have a requirement where i just need to fetch the Latitude and Longitude by giving address here is the two different versions of Google Maps Geocoding API URL i used which outputs almost the same result.

http://maps.google.com/maps/geo?output=xml&key=MyApiKey&oe=utf-8&q=Bhatkal,%2CKarnataka,%2CIndia http://maps.googleapis.com/maps/api/geocode/xml?sensor=false&address=Bhatkal,%2CKarnataka%2C,India

the first one is with API Key and the Second one without the API Key. i would like to know

a) Why do i need to use the API key when i could fetch the result without defining the key.

b) Which one is more feasible API for my Purpose of just fetching latitude and longitude..

-------------Problems Reply------------

The first URL is for v2 of the Geocoding API, the second is for v3.


  • is now deprecated
  • requires an API key
  • has (undocumented) support for JSONP

  1. Which one to use depends (at least in part) on what environment you're going to use it in - if you want to use it in a webpage with JavaScript, you'll have to use v2 since it has JSONP support (unless you want to add a server-side component to get around cross-domain issues). An alternative for JavaScript is the JavaScript API Geocoder service.
  2. If you're using the API in a desktop app or on the server-side, you can use either but v3 would be recommended.
  3. v3 also has a higher query limit (2500 requests per day) as compared to v2 (1500 requests per day)

The first URL is of Google Maps v2 and the second of Google Maps v3 .
v2 is deprecated , but that doesn't mean you can't it use it , it only
indicates that "Google will continue fix bugs for 3 yrs if any ,
but no new features will be added .
You can continue using it even after that period ."

1)Google Maps v3 doesn't support JSONP
2)Google Maps v2 has higher geocoding limit 15000 and not (1500)
while Google Maps v3 has 2500 geocoding limit .
3) Google Maps v2 supports 4 output formats
4)Google Maps v3 supports only 2 formats json and kml

Category:api Views:0 Time:2011-05-30

Related post

  • Google maps geocoding API inconsistent 2011-06-07

    I have a server application that calls the google maps geocoding API at http://maps.googleapis.com/maps/api/geocode/json I experience that when the server application invokes such an URL, the response is sometimes ZERO_RESULTS. If I take the exact sa

  • Is there a limit on number of placemarks returned by Google Maps Geocoding API v2? 2011-03-25

    So, the question is: is there a limit on number of placemarks returned by Google Maps Geocoding API v2? I searched through the web but this limit (if it exists) is nowhere explicitly stated. However I've never seen Geocoding API return more than 10 p

  • How to get all landmarks within a city Using Google Maps GeoCoding API? 2011-05-30

    is there any way i could get all the landmark name within some few kilometers of given area. say for example there is a town called Bhatkal (5km in radius), which comes in Karnataka, India. As Bhatkal is just a small town google maps does not store a

  • Google Maps Geocoding API license? 2012-01-06

    I'm looking everyone for where i get a api key to use Google Maps Geocoding API. Do i have to request a premier license to use this API? Or is there a low usage option somewhere? Could someone point me in the correct direction please? --------------S

  • Google maps geocode API V3 not returning result in javascript function 2010-11-09

    I'm trying to use the Google geocoder API V3 to plot a location on a map based on an address specified by the user, code is below. When I make a request directly (e.g. to http://maps.googleapis.com/maps/api/geocode/json?address=peterborough&senso

  • Using the google maps geocoding api for large scale site? 2011-02-27

    I'm in the process of developing a web app for a very large, international, commercial website. The specific functionality I'm concerned with is retail office search. The work flow requires this (simplified for these purposes) user enters a city name

  • Google Maps Geocoding API - country biasing, bizarre results 2010-05-19

    I'm connecting to the Google Maps API from PHP to geocode some starting points for a rental station locator application. Those starting points don't have to be exact addresses; city names are enough. Geocoding responses with an accuracy equal to or g

  • Request address from google maps(using api URL) 2011-07-25

    Is there anyway to request address from google maps using latitude and longitude? I am using iOS SDK so I want URL to make the request with ASIHTTP. --------------Solutions------------- You're looking for the reverse geocoding API provided by google

  • Google Maps geocode api inconsistencies 2011-08-07

    I'm trying to geocode this address "188th street & third avenue, bronx NY" If you run this geocode query through the maps api v3 geocoder, you get back 10 or so results, none of which are in new york. http://maps.google.com/maps/api/geocode/xml?s

  • Google Maps Geocoding API Incorrect Rate Limiting 2011-10-31

    I'm adding a mapping function to one of the internal tools used by my company. Long story short, we have a list of about 50 addresses that need to be placed on a map. I'm using Google Maps so that it is an interactive map, and then the javascript API

  • Google Maps Geocode API, how to access with your API Key? 2012-09-19

    According to Google Map's Geocode API documentation: https://developers.google.com/maps/documentation/geocoding/index#GeocodingRequests you can simply make a call to the geocode request address like this: http://maps.googleapis.com/maps/api/geocode/j

  • Google Maps geocode API - handling lat/lng input from user 2012-02-14

    I'm using the version 3 API and I have a text input that the user enters a search string that is used to geocode via the API. The map is updated and a marker is placed at the resulting match. This all works fine except for a few cases. Here is the co

  • Google Map Geocode API returns only top 6 results-How do I get more? 2012-04-03

    I am using the following uri's to connect to Google Api from a C# class. I left the address that I am currently having trouble with in it as an example. http://maps.googleapis.com/maps/api/geocode/xml?address=Mt%20Vernon&sensor=false http://maps.

  • Does the v3 Google Maps Geocoding API have a field that represents accuracy? 2011-09-19

    I have some code that I'm porting over from API v2 to v3. In the old code we had an accuracy field that came back in the xml (not sure of the name, but it did represent a confidence level of sorts). In the new API, I don't see any field like that. If

  • How to call google map geocode service with jquery ajax 2011-03-04

    I'm trying to get the LatLng from google map geocode api. my code is below with address values is "New York, NY" $.ajax({ url: 'http://maps.googleapis.com/maps/api/geocode/json', data: { sensor: false, address: address }, success: function (data) { a

  • Google Map Geocoding not returning lat/long for a valid complete address 2011-12-11

    I am facing a weird issue with Google Maps Geocoding API v3. It works fine for all other addresses that i have tried so far but it's giving me an issue with the following address. 35 & 36, Rajiv Gandhi Infotech Park, Pune, 411057, India OR Plot N

  • Daily server-side caching of 10,000 Google Maps geocoder responses 2009-09-18

    I'm currently looking into methods of implementing server-side caching of roughly 10,000 Google Maps geocoder responses in a J2EE web application. Since Google limits the number of geocoding requests to 15,000 per day, I need a method to store my req

  • Google Maps Data API vs Google Maps API 2011-01-11

    What is the difference between Google Maps Data API and Google Maps API? I noticed the former is deprecated but it is not replaced by the latter. It seems to me these two APIs are meant to do separate things, but it's not clear what that is. I want t

  • Reverse Geocode on Client Side (Google Maps V3 API) 2011-07-02

    How do you do a Reverse Geocode on the clientside using Google Maps V3 API? The forward geocode from address to LatLng is straight forward (code below), but how do you do the same for reverse geocode? Normal Geocode Code: geocoder = new google.maps.G

Copyright (C) dskims.com, All Rights Reserved.

processed in 0.133 (s). 11 q(s)