how to get city and country by Google plus api ? If do not use geolocation - google-plus

I using Google Plus API. In the past i got city and country for user. But now it is not working for me. I do not know why? I can not get this information.

How to get Location user by Google API?. Plesse example.

Related

How to get description for Google API nearbysearch items

I am developing a web app for client requirement in that i am using Google API for finding nearby place
https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=.....
I was able to get all the required details. Name, rating, etc but only description is missing. will i be able to get it from anywhere, i tried
https://maps.googleapis.com/maps/api/place/textsearch/json?query=...
but not getting required result only country or place is getting here not restaurant or venue description. Please help me to get details for each item in nearby search result. Or any other suggestions
Based on the documentation of both Google Places API Nearby Search Requests and Google Places API Text Search Requests, description property is not included in the returned results. You could rather file for a Feature Request to include description to each returned places in the results here at Google Public Issue Tracker.
Issue Tracker is a tool used internally at Google to track bugs and
feature requests during product development. It is available outside
of Google for use by external public and partner users who need to
collaborate with Google teams on specific projects.
You can learn more about Issue Tracker through this link.
I would also like to suggest to read Google Places API Place Details. It returns more comprehensive information about the indicated place such as its complete address, phone number, user rating and reviews.
Hope this help!

The Geocoding api returns a wrong location for a pincode, but Google maps returns right location

I used the pincode (400036) in the geocoding webservice, but got a location in China. The webservice is shared below.
http://maps.google.com/maps/api/geocode/json?address=india&components=postal_code:400036&sensor=false
Ideally it should be a location in Mumbai (Bombay) in the state of Maharashtra, India.
Any ideas why this could occur?
Also, any other parameters that can be passed to make this particular pin code work?
Thanks and regards,
Anand
P.S.: I'm a Business Analyst, so my technical know-how and command of programming languages is pretty limited. However, I'll be most happy to receive help from the community here and pass it on to my dev team. Thanks.
Geocoding and working with real-world data is hard, and not even the great Google (no sarcasm, I'm a fan) gets it right all the time. Apparently there is a software or data bug in the Google API, since this works (added Country India to the component filter):
http://maps.google.com/maps/api/geocode/json?components=postal_code:400001%7Ccountry:IN&sensor=false
But this does not, and is not even filtering by country because it still returns Chinese results:
http://maps.google.com/maps/api/geocode/json?components=postal_code:400036%7Ccountry:IN&sensor=false
If you're a paying customer, you can contact Google for support here: http://www.google.com/enterprise/portal
You can use http://geoanalyzer.in for this. Google maps and google api are slighly different as Google Maps shows you results from both Google Maps API and also from Google places hence a lot of time you get wrong data in case of Google Maps API. Geo Analyzer solved this and has been built specifically for Indian addresses.
This is one of the few available solutions that is targeted for Indian address system complexity. I hope this will help.

how to get location name if i have latitude and longitude in Yahoo Maps

I am designing a web application which will use Google Maps and Yahoo Maps. But I am searching for yahoo api to get location address using lat and long. Google Api is not working properly. They have very close limitations. Please help me..!
If you haven't already tried, you should use the "Reverse Geocoding (Address Lookup)" feature of the Google Geocoding API.
Details here: https://developers.google.com/maps/documentation/geocoding/#ReverseGeocoding
If you have tried that and aren't satisfied, you should check out Yahoo's Place Finder API. That let's you search for addresses by passing lat/long coordinates. See links below:
Overview: http://developer.yahoo.com/boss/geo/docs/requests-pf.html
Passing lat/long: http://developer.yahoo.com/boss/geo/docs/address-formats.html#latitude-longitude

Standardised Country codes across map APIs?

Im using the Google maps geolocation API to get a users country and city, and then if that fails, as a fallback I'm using Maxminds Geo IP City service to get the rough location by IP address.
Both APIs have codes for countries, are these standardised throughout the map API world, for example would the UK be UK on all or GB in some? Im trying to work out whether I can relate attractions to a list of country codes as one country code to many attractions.
thanks
Im not sure if every Map API would use this but it occured to me there is proabbly an ISO standard http://en.wikipedia.org/wiki/ISO_3166-1
it would make logical sense for the APIs to follow such a standard.

google maps api get countries and cities

Can i have autocomplete with ajax to get countries from google maps api.
When someone type "United" to search on google maps api for that country and to show results for similar ?
Can you give me example, or link to that solution for google maps api ?
Have a look at the Google Places Autocomplete API. Here is a blog post to get you going.