geocoding

How to geocode address by google maps iOS API?

妖精的绣舞 提交于 2019-11-30 09:19:09
I found one way to send request: A Google Maps Geocoding API request takes the following form: https://maps.googleapis.com/maps/api/geocode/outputFormat?parameters where outputFormat may be either of the following values: json (recommended) indicates output in JavaScript Object Notation (JSON); or xml indicates output in XML To access the Google Maps Geocoding API over HTTP, use: But it's really inconvenient, is there any native way in swift? I looked into GMSGeocoder interface and only reverse geocoding can be done by it's API. As others have pointed out, there is not a predefined method to

How to get Indian postal pincode using google map's lat & long? [closed]

五迷三道 提交于 2019-11-30 07:34:57
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . I am making an app which will take user's current location or his customized map marker to find out lat & long and then using those values I would like to know pincode(zipcode) of that area so that I can tell user whether goods can be delivered in that area or not. I have tried this : http://www.geonames.org

GIS: PostGIS/PostgreSQL vs. MySql vs. SQL Server? [closed]

我与影子孤独终老i 提交于 2019-11-30 05:51:52
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 5 years ago . EDIT: I have been using Postgres with PostGIS for a few months now, and I am satisfied. I need to analyze a few million geocoded records, each of which will have latitude and longitude. These records include data of at least three different types, and I will be trying to see

Country code from a latitude longitude position (without using geocoding services)

五迷三道 提交于 2019-11-30 05:30:18
问题 How can i get the country code from a latitude longitude position? I know that there are many geocoding services available, but they don't meed my requirement because my application gets blocked a few hours after it goes live (many geocoding requests). Most geocoding services also offer commercial services, but they are not yet a option because the project is in it starting blocks. I did a bit of research and think i found a way to do it: Get a shape file (or other data file) that contains

Google Places get LatLng

£可爱£侵袭症+ 提交于 2019-11-30 05:08:47
I am using the Autocomplete method to get Place Suggestions and when I click the Place I want to choose, I want to extract the Lat and Lng which is placed under place.geometry.location as below. As per my observation, the keys ib and jb keep changing with every session. Is there any way I can extract the Lat and Lng predictably? $(document).ready(function() { var mapOptions = { center : new google.maps.LatLng(-33.8688, 151.2195), zoom : 13, mapTypeId : google.maps.MapTypeId.ROADMAP }; var map = new google.maps.Map(document.getElementById('map'), mapOptions); $('#searchTextField').bind('keydown

Does the v3 Google Maps Geocoding API have a field that represents accuracy?

强颜欢笑 提交于 2019-11-30 03:58:52
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 I put "Oregon, USA" into the search field I get 5 matches. The first 2 are "Oregon, USA" and "Oregon, OH, USA". They both have "partial_match" = false. This doesn't seem right, one seems partial and one doesn't. Plus, they're both coming back with the same "location_type" (APPROXIMATE). In fact, all matches are showing as not-partial and have same

Getting street,city and country by reverse geocoding using google

我们两清 提交于 2019-11-30 03:49:24
I'm trying to getting the $street, $city and $country string from google json. It works for my home address : http://maps.googleapis.com/maps/api/geocode/json?latlng=52.108662,6.307370&sensor=true $url = "http://maps.googleapis.com/maps/api/geocode/json?latlng=".$lat.",".$lng."&sensor=true"; $data = @file_get_contents($url); $jsondata = json_decode($data,true); if(is_array($jsondata) && $jsondata['status'] == "OK") { $city = $jsondata['results']['0']['address_components']['2']['long_name']; $country = $jsondata['results']['0']['address_components']['5']['long_name']; $street = $jsondata[

Finding City and Zip Code for a Location

强颜欢笑 提交于 2019-11-30 02:31:21
Given a latitude and longitude, what is the easiest way to find the name of the city and the US zip code of that location. (This is similar to https://stackoverflow.com/questions/23572/latitude-longitude-database , except I want to convert in the opposite direction.) Related question: Get street address at lat/long pair This is the web service to call. http://developer.yahoo.com/search/local/V2/localSearch.html This site has ok web services, but not exactly what you're asking for here. http://www.usps.com/webtools/ Any of the online services mentioned and their competitors offer "reverse

geocoding address into coordinates in iphone

喜你入骨 提交于 2019-11-30 01:35:07
I am trying to geocode address into coordinates using following code: CLGeocoder *geocoder = [[CLGeocoder alloc] init]; [geocoder geocodeAddressString:@"6138 Bollinger Road, San Jose, United States" completionHandler:^(NSArray* placemarks, NSError* error){ for (CLPlacemark* aPlacemark in placemarks) { // Process the placemark. NSString *latDest1 = [NSString stringWithFormat:@"%.4f",aPlacemark.location.coordinate.latitude]; NSString *lngDest1 = [NSString stringWithFormat:@"%.4f",aPlacemark.location.coordinate.longitude]; lblDestinationLat.text = latDest1; lblDestinationLng.text = lngDest1; } }]

Google maps API geocoding returns same coordinates for two different places

醉酒当歌 提交于 2019-11-29 23:50:30
问题 I'm trying to get the coords for these POI but Google Geocoding returns wrong coords, the same coords for both addresses. In the Google Maps they work fine. How should I construct a correct URL for them? https://maps.googleapis.com/maps/api/geocode/json?address=Paleo+Enetiko+Frourio,+Corfu+491+00+Greece https://maps.googleapis.com/maps/api/geocode/json?address=Vlacherna+monastery,+Corfu+491+00+Greece 回答1: Those are "places" not postal addresses. They both resolve to the same "address" as far