geocoding

Could geocodeAddressDictionary in iOS 9 be implemented different from iOS 8

∥☆過路亽.° 提交于 2019-12-11 09:52:41
问题 I am looping through a set of addresses and performing a geocode on each one. for aClient in passedPossible { let geocoder = CLGeocoder() let checkAddress = [ CNPostalAddressStreetKey:aClient[CNPostalAddressStreetKey]!, CNPostalAddressCityKey:aClient[CNPostalAddressCityKey]!, CNPostalAddressPostalCodeKey:aClient[CNPostalAddressPostalCodeKey]!, CNPostalAddressCountryKey:"Australia" ] geocoder.geocodeAddressDictionary(checkAddress, completionHandler: { (placemarks, error) -> Void in // Etc do

GeoJSON Coordinates?

痞子三分冷 提交于 2019-12-11 09:51:23
问题 I have a GeoJSON file that I am trying to process in order to draw some features on top of google maps. The problem, however, is that the coordinates are not in the conventional latitude/longitude representation, but rather some large six/seven figure numbers. Example: { "type": "FeatureCollection", "features": [ { "type": "Feature", "id": 0, "properties": { "OBJECTID": 1, "YR_BUILT": 1950.0 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 772796.724674999713898, 2960766

Flutter - Get geocode address from coordinates

最后都变了- 提交于 2019-12-11 08:52:18
问题 I've implemented a reliable way of getting user lat,long coordinates in an app I'm creating, but can't seem to turn these coordinates into a placemark. I'd also like to figure out what I need to use to print this data. This is what I'm trying to get this data with: List<Placemark> place = []; void _getPlace() async { List<Placemark> newPlace = await _geolocator.placemarkFromCoordinates(_position.latitude, _position.longitude); print(newPlace); setState(() { place = newPlace; }); } Thanks Edit

How to handle missing values when using a reverse geocode function?

让人想犯罪 __ 提交于 2019-12-11 08:35:02
问题 I am currently working with data (N of 271,848) in R that looks as follows: Observation Longitude Latitude -------------------------------------- 1 116.38800 39.928902 2 53.000000 32.000000 3 NA NA 4 NA NA And I am using a reverse geocode function from the following post: Convert latitude and longitude coordinates to country name in R When I run the coords2country(points) line, I get the following error: "Error in .checkNumericCoerce2double(obj) : non-finite coordinates" My best guess is that

HERE Batch Geocoder Accepted but never Finishes

一曲冷凌霜 提交于 2019-12-11 07:31:57
问题 I've been evaluating moving our Mapping and Routing apps to use HERE's Rest API. I've been testing some scenarios to proof it out and one I can't seem to get working correctly is the Batch Geocoding. The submission of the data to Geocode works fine and I do get a valid RequestID back but when I poll for the status of the Batch Job the status always says "accepted" but never seems to change. I am using a developer account that has a 90 day trial. Could there be a limitation due to the type of

Display Location with MapBox java-script SDK [duplicate]

ぐ巨炮叔叔 提交于 2019-12-11 07:29:53
问题 This question already has answers here : Using MapBox for Geolocation in html (2 answers) Closed last year . How do I display location of an address on an HTML page using MapBox SDk forward Geo-Coding function. The SDK already does the query, but I need to be able to display the map and its location with a point on the html. here is my sample code. <html> <head> <meta charset="utf-8"> <title>MapBox</title> <meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no">

Current location from latitude and longitude

余生长醉 提交于 2019-12-11 06:57:57
问题 I am using two methods for it getAddress() and address()..One to get latitude and and other one to get address from latitude and longitude.. public String getAddress(){ location = locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER); location = locationManager.getLastKnownLocation(locationManager.NETWORK_PROVIDER); latitude= location.getLatitude(); longitude= location.getLongitude(); try { val = address(latitude, longitude); } catch (IOException e) { e.printStackTrace(); } Toast

Google's GeoCode Convert City, STATE into Latitude Longitude

偶尔善良 提交于 2019-12-11 06:07:29
问题 The following code works asynchronously. I only have it set up to convert a City, State into latitude and longitude. That value is then alerted. How can I write a function that actually returns these values? var map; var geocoder; function initialize() { geocoder = new GClientGeocoder(); } // addAddressToMap() is called when the geocoder returns an // answer. It adds a marker to the map with an open info window // showing the nicely formatted version of the address and the country code.

Android 4.1 Geocoder.getLocationFromName() throws IOException: Unable to parse response from server ONLY over 3G

ε祈祈猫儿з 提交于 2019-12-11 05:52:36
问题 I am using the Geocoder in my android app to resolve a string in to Addresses. The following snippet of code works normally over Wifi, but not over 3G. When over 3G, it throws an IOException: Unable to parse response from server . In other discussions about this, a common answer is that a probable cause is that the Geocoder is used many times/minute, surpassing the threshold, and that causes the service to temporarily throw the exception. The I am sure this is not my case, because I never got

Map Lat/Lon Points to a Shape File in R

时光怂恿深爱的人放手 提交于 2019-12-11 05:27:47
问题 I am trying to identify the zip code for each set of lat/lon coordinate using a shapefile. Lat Lon data is extracted from: https://data.cityofchicago.org/Public-Safety/Crimes-2017/d62x-nvdr (Crimes_-_2001_to_present.csv) Shapefile: https://www2.census.gov/geo/tiger/PREVGENZ/zt/z500shp/ zt17_d00.shp (zip code definitions for the state of Illinois) library(rgeos) library(maptools) ccs<-read.csv("Crimes_-_2001_to_present.csv") zip.map <- readOGR("zt17_d00.shp") latlon<-ccs[,c(20,21)] str(latlon)