geocoding

Googlemaps Reverse GeoCoding Get Country Name, UK Countries

北战南征 提交于 2019-12-08 07:36:06
问题 I am using google maps Api V3 and using reverse geocoding to find the name of a country clicked on. This appears to work fine for most countries except the countries within the UK. The UK consists of England, Scotland, Wales and Northern Ireland, which are 4 separate countries, but google maps (and most other country things) see them all as just "UK". I need to know which particular country within the UK has been clicked and not just that the UK has been clicked! I am using the following

Google Geocoding API limit exceeded on cell network, but not on wifi

耗尽温柔 提交于 2019-12-08 05:20:54
问题 I'm using SVGeocoder to access Google's geocoding services on iOS, and I'm running into a really weird problem. Geocoding works perfectly when testing on the simulator or on a phone connected to wifi, but once the phone is switched to 3G/4G, I start getting "LIMIT EXCEEDED" errors. I've only made a few dozen requests via 3G/4G, no where near the 2500 request limit. What could be going on here? Thanks in advance! UPDATE : I ended up solving the issue by delaying the time between each geocode

Different GPS Location Reading Of Same Physical Location on Windows Phone GeoCoordinateWatcher

人走茶凉 提交于 2019-12-08 05:13:13
问题 I am getting coordinates with Windows Phone GeoWatcher like this private GeoCoordinateWatcher _watcher = new GeoCoordinateWatcher(GeoPositionAccuracy.High); _watcher.MovementThreshold = 2; // Threshold Value _watcher.PositionChanged += Watcher_PositionChanged; //Registering Watcher Position Change Event _watcher.Start(); // Starting Watcher //Watcher position Change Event private void Watcher_PositionChanged(object sender, GeoPositionChangedEventArgs<GeoCoordinate> e) { var coord = new

Syncing Rcpp with external headers and libraries to build a batch geocoding package

被刻印的时光 ゝ 提交于 2019-12-08 03:32:54
问题 Good evening. GOAL: I am attempting to build a batch geocoding package based on the New York City Department of City Planning's Geosupport software using RCPP from within RStudio on a machine running Windows. Geosupport returns a lot of useful information besides coordinates including building identification number and census geographies. I think such a package has the potential to be very useful to researchers and community advocates working with NYC data. BACKGROUND: Geosupport is available

2 Google Maps working with geocoding on same page

夙愿已清 提交于 2019-12-08 03:18:57
问题 I am using Google Maps to geo code an address and populate that information into an input field. I can do this successfully for 1 map, but I need to have 2 maps on my page. Each having their own geo-coding information. I have attempted to put the Javascript code together, essentially duplicating my first map. My JavaScript is as follows <script type="text/javascript"> var geocoder; var map; function initialize() { geocoder = new google.maps.Geocoder(); var latlng = new google.maps.LatLng(53

Geocoding Multiple Locations - Knowing When “All” Completion Blocks Have Been Called

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-08 02:53:45
问题 I am using the CoreLocation's geocoder to get the CLLocation coordinates for multiple map items. The geocoder calls a completion block on completion for each item. How do I create a similar block functionality which is called when all of these containing asynchronous geocoder calls have been completed? (I could use a manual counter. But there must be a more elegant solution) Here's my geocoding function so far. It loops through an array of location items and starts a new geocoding process for

How to use Geocoding API v3 in Classic ASP

淺唱寂寞╮ 提交于 2019-12-08 02:29:21
问题 wondering if anyone could help me. I'm trying to return the results of lat and lng of an address. New to coding and have got stuck. The following code worked fine until the Geocoding went from v2 to v3. Can you tell me where I'm going wrong? and do I need a new v3 key or key at all? Thanks in advance. <% Function GetXML(url) Dim xmlobj Set xmlobj = Server.CreateObject("MSXML2.ServerXMLHTTP.3.0") xmlobj.setTimeouts 30000, 30000, 30000, 30000 xmlobj.Open "GET", url, False xmlobj.send() If

Geocoding - Grouping multiple addresses into major cities

╄→гoц情女王★ 提交于 2019-12-08 01:43:01
问题 Been hunting through previous questions on Geocoding and while many are helpful I'm not finding one to my needs. I need to group multiple addresses to the nearest city centers. My only address information is city, country, and state (if applicable). For example, all addresses in San Francisco and within miles should be listed as San Francisco. I'll need to know the count of addresses rolled-up to San Francisco. I'm open to suggestions on how to approach this. I don't particularly want to

Need Google Geocoding to return City name in English

冷暖自知 提交于 2019-12-07 23:03:36
问题 I have this code for requesting google to correct the typed in address, and need it to return the English name for the city: function gmap_query_xml($in_address) { $base_url = "http://maps.google.com/maps/geo?output=xml&region=US&language=en&key=". KEY; $request_url = $base_url . "&q=" . urlencode($in_address); return simplexml_load_file($request_url); } Then, $xml = gmap_query_xml($in_address); And finally to get the city name: if ($xml) { $city = (string) $xml->Response->Placemark-

Windows Phone - get zoom level from distance

社会主义新天地 提交于 2019-12-07 22:30:24
问题 I am not good at math so please help me with this. I have distance in meters and I need to calculate zoom level and center to map from this. How can I do that? I started with this but now I am completly lost: var sCoord = new GeoCoordinate(startPoint.X, startPoint.Y); var eCoord = new GeoCoordinate(latitude, longitude); var distance = sCoord.GetDistanceTo(eCoord); Thanks 回答1: If I understated you correctly, you can achieve the goal by using the following code var start = ...; var finish = ...