reverse-geocoding

Windows Phone ReverseGeocoding to get Address from Lat and Long

依然范特西╮ 提交于 2019-12-04 02:32:04
问题 i am using the following service reference to get location details from latitude and longnitude http://dev.virtualearth.net/webservices/v1/geocodeservice/geocodeservice.svc i added the above URL to my Service reference class and try to get the location details by calling the below method public void reverse() { string Results = ""; try { // Set a Bing Maps key before making a request string key = "Bing Maps Key"; ReverseGeocodeRequest reverseGeocodeRequest = new ReverseGeocodeRequest(); //

Android reverse geocoding getLocality returns often null

≯℡__Kan透↙ 提交于 2019-12-03 15:20:01
问题 I am using Android Geocoding to get the current city with Address.getLocality() method. It has worked fine, until just recently it appears to often return null for the locality. Here is an example: try { Geocoder c = new Geocoder(this, Locale.getDefault()); double lat = 51.481; double lon = 0.0; List<Address> l = c.getFromLocation(lat, lon, 5); for (Address a: l) { Log.i("GeocoderTest", "Locality " + a.getLocality() + " (" + a + ")"); } } catch (IOException e) { Log.e("GeocoderTest", "", e);

Offline Reverse Geocoding at Country Level [closed]

吃可爱长大的小学妹 提交于 2019-12-03 08:57:20
Closed. This question is off-topic. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it's on-topic for Stack Overflow. There seems to be much about this, but everyone seems to want street level data. I'm writing an iOS app that needs to get the international dial code (outgoing) for the country you are in - so all I need is the country. As this is mostly going to be used abroad, an online solution isn't really going to work! Whist searching I discovered the fantastic openstreetmap.org, but their export feature seems only to provide

CLGeocoder reverseGeocodeLocation returns 'kCLErrorDomain error 9'

三世轮回 提交于 2019-12-03 07:27:45
问题 I'm developing an iOS app with reverse geocoding features according to this article: geocoding tutorial But when I test like this on simulator, I get 'kCLErrorDomain error 9'. I've searched a lot and there are only error 0 or 1 not 9. Here is my code in viewDidLoad : self.locationManager = [[CLLocationManager alloc]init]; self.locationManager.delegate = self; self.locationManager.distanceFilter = 80.0; [self.locationManager startUpdatingLocation]; CLGeocoder *geocoder = [[[CLGeocoder alloc]

Android how to get the street name from an address returned by Geocoder

杀马特。学长 韩版系。学妹 提交于 2019-12-03 07:11:28
I'm using Geocoder in reverse way to get an address from a given lat & lon. Do you know how to get from Address only the street name ? Geocoder geocoder = new Geocoder(AutoFinderMapActivity.this); try { List<Address> addressList = geocoder.getFromLocation(latitude, longitude, 1); if (addressList != null && addressList.size() > 0) { // Help here to get only the street name String adress = addressList.get(0).get...; } } catch (IOException e) { e.printStackTrace(); } Thanks in advance, I was searching up the very same thing. I disagree with the answer that was marked as correct. I could be wrong

Android reverse geocoding getLocality returns often null

走远了吗. 提交于 2019-12-03 04:56:32
I am using Android Geocoding to get the current city with Address.getLocality() method. It has worked fine, until just recently it appears to often return null for the locality. Here is an example: try { Geocoder c = new Geocoder(this, Locale.getDefault()); double lat = 51.481; double lon = 0.0; List<Address> l = c.getFromLocation(lat, lon, 5); for (Address a: l) { Log.i("GeocoderTest", "Locality " + a.getLocality() + " (" + a + ")"); } } catch (IOException e) { Log.e("GeocoderTest", "", e); } This now logs the following message for the first returned address: Locality null (Address

Geocode Area Names of a City to get Lat and Long

喜欢而已 提交于 2019-12-03 03:58:55
问题 I have a list of areas names in my City and i need the Lat and Long of the same. Is there any service which i can use the get the Data ? I dont wanna use any map. I would like to make simple api calls and get the lat long via json or xml. 回答1: You can use the Google Geocoding service: REST format: http://code.google.com/apis/maps/documentation/geocoding/index.html JavaScript: http://code.google.com/apis/maps/documentation/javascript/services.html#Geocoding EDIT : For those too lazy to read,

CLGeocoder reverseGeocodeLocation returns 'kCLErrorDomain error 9'

霸气de小男生 提交于 2019-12-02 20:57:58
I'm developing an iOS app with reverse geocoding features according to this article: geocoding tutorial But when I test like this on simulator, I get 'kCLErrorDomain error 9'. I've searched a lot and there are only error 0 or 1 not 9. Here is my code in viewDidLoad : self.locationManager = [[CLLocationManager alloc]init]; self.locationManager.delegate = self; self.locationManager.distanceFilter = 80.0; [self.locationManager startUpdatingLocation]; CLGeocoder *geocoder = [[[CLGeocoder alloc] init] autorelease]; [geocoder reverseGeocodeLocation:self.locationManager.location completionHandler:^

Swift - Generate an Address Format from Reverse Geocoding

痞子三分冷 提交于 2019-12-02 17:36:11
I am trying to generate a Formatted Full address using CLGeocoder in Swift 3. I referred to this SO thread to get the code given below. However, sometimes the app crashes with a 'nil' error at the line: //Address dictionary print(placeMark.addressDictionary ?? "") Questions: How can I concatenate these values retrieved from the GeoCoder to form a full address? (Street + City + etc) How do I handle the nil error I get when the func is unable to find an address? Full code: func getAddress() -> String { var address: String = "" let geoCoder = CLGeocoder() let location = CLLocation(latitude:

Geocode Area Names of a City to get Lat and Long

我是研究僧i 提交于 2019-12-02 17:21:43
I have a list of areas names in my City and i need the Lat and Long of the same. Is there any service which i can use the get the Data ? I dont wanna use any map. I would like to make simple api calls and get the lat long via json or xml. You can use the Google Geocoding service: REST format: http://code.google.com/apis/maps/documentation/geocoding/index.html JavaScript: http://code.google.com/apis/maps/documentation/javascript/services.html#Geocoding EDIT : For those too lazy to read, here's the REST format example.. xml response: http://maps.googleapis.com/maps/api/geocode/xml?address