reverse-geocoding

How to prepare existing database for location aware searching?

橙三吉。 提交于 2019-12-11 18:08:44
问题 Requirement : I am currently working on an app that has over 30000 records. The requirement is to have location based/aware searching . For eg. within 5mi from my present location. How will this service be accessed : This service will be accessed from both web and iOS app. Development platforms : Web : Cakephp, php and python DB : MySql iOS : objective-c External libraries currently being used : Google Maps Javascript Api v3 Location based searching I have been doing some research on this

Using MKReverseGeocoder in a singleton class (ARC)

China☆狼群 提交于 2019-12-11 13:27:38
问题 I'm in the process of trying to create a singleton class for weather functions (all encompassed) so that I can change/update/recall weather data throughout my entire app in a single allocated object. I have it working except for one little weird bug. I'm using MKReverseGeocoder on devices running iOS < 5. CLGeocoder works fine on iOS 5+. Basically, this is what happens in the app: In the app delegate, at launch, I create the shared instance of my weather singleton. This instance doesn't do

reverse geocoding to extract address components

女生的网名这么多〃 提交于 2019-12-11 05:26:32
问题 I'm trying to reverse geocode with R. I first used ggmap but couldn't get it to work with my API key. Now i'm trying it with googleway. newframe[,c("Front.lat","Front.long")] Front.lat Front.long 1 -37.82681 144.9592 2 -37.82681 145.9592 newframe$address <- apply(newframe, 1, function(x){ google_reverse_geocode(location = as.numeric(c(x["Front.lat"], x["Front.long"])), key = "xxxx") }) This extracts the variables as a list but I can't figure out the structure. I'm struggling to figure out how

iPhone - Updating Annotation subtitle in mapkit

陌路散爱 提交于 2019-12-11 05:06:30
问题 I have a custom placemark with title and subtitle. The subtitle is actually displaying the address of the dropped pin using the reverse geocoder. I have a button which has an action to drop the pin. This action gets the location coordinates of the user, and then calls [geocoder start] which gets the full address with Reverse Geocoder and generates the custom annotation and then calls [mapView addAnnotation:customPlacemark]. My problem is that using this sequence order, when there's no a WiFi

Reverse Geocoding using Perl and Google Maps API

北城以北 提交于 2019-12-11 04:29:45
问题 A Perl module exists in order to interface with the Google Maps API. The code is as follows: use Geo::Coder::Google; $geocoder = Geo::Coder::Google->new(); @location = $geocoder->geocode(location => '1600 Pennsylvania Ave. Washington DC USA'); Site Source: http://search.cpan.org/~arcanez/Geo-Coder-Google-0.11/lib/Geo/Coder/Google/V2.pm However I need to go from coordinates to address. How is that done even if that means using a different means in PERL? Please be advised that I tried the

Swift 3: reverseGeocodeLocation does not call its completion handler

荒凉一梦 提交于 2019-12-10 10:44:44
问题 This is my code if loc.latitude != 0.0 && loc.longitude != 0.0 { let loca = CLLocation(latitude: loc.latitude, longitude: loc.longitude) geoCoder.reverseGeocodeLocation(loca) { (placemarks, error) in // this is the last line that is being called var placemark : CLPlacemark! placemark = placemarks?[0] city = (placemark.addressDictionary?["City"] as! String) } } Execution of this code snippet in my app goes right, no runtime errors occurred. However, the last line that is being called is

Google Maps iOS Reverse Geocoding

别说谁变了你拦得住时间么 提交于 2019-12-09 13:15:39
问题 I am having an issue with Google Maps Reverse Geocoding when it comes to setting a UILabel's text to the reverse geocoded address. The UILabel is in an XIB use as a custom infowindow. I have another custom infowindow for other data that is working correctly however, it appears that when I try to set the label's text within the reverse geocode callback / completion handler, it doesn't work. Here is the code I have so far and I have tried the code multiple ways, including assigning it to

Offline Reverse Geocoding at Country Level [closed]

北慕城南 提交于 2019-12-09 07:43:27
问题 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 5 years ago . 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!

send http request using django and get results

天大地大妈咪最大 提交于 2019-12-08 20:25:23
问题 This might seem like an extremely simple and stupid question yet i can't find a convenient answer. I'm trying to use google's reverse geocodding api with django, as the website explains (at https://developers.google.com/maps/documentation/geocoding/start?csw=1#ReverseGeocoding ) I'm supposed to send a request to the url : https://maps.googleapis.com/maps/api/geocode/json?latlng=40.714224,-73.961452&key=<_api_key> But I can't find an appropriate way to send this request using django to google

Find nearest known location: Google Reverse Geocoding

余生长醉 提交于 2019-12-08 10:04:30
I am required to get the formatted address of a given coordinates using Google Maps API. I use the Google Reverse Geo coding for finding the location name. This works fine when there is a name available for the location in the Google maps database. Most of the times, the given coordinates are from a location far off from city boundaries (on a highway for example). The function returns ZERO_RESULTS as there is no name defined on the map. Requirement is to find the nearest known location address to be returned. Functionally this is a nice to hear, but technically, how to go about it? Currently I