geocoding

Geocoding API issue ZERO_RESULTS in api response but works in browser

Deadly 提交于 2019-12-10 11:23:52
问题 we are using the standard license for Geocoding APIs and we observed that there are some intermittent issue with the service response, we get ZERO_RESULTS from API but when we use the same address in browser it works and gives us OK status and it happened for multiple address during that time. but after sometime it started working again. so i am confused if there was down time today between 9 AM 11:30 AM PST. i checked the console developer dashboard also and i didn't find any error/latency

Get all points(circles with radius), that overlap given point

醉酒当歌 提交于 2019-12-10 11:12:46
问题 I need to find the best way for a "circles overlapping given point" system. I have a lot of points e.g. restaurants, and every item has a point of the place, and a radius for e.g. "bringing out food". The radius differ, some have 3 km, others 10 km. I am searching from a point. e.g. "My position" latitude/longitude. I need to find the best way to find all restaurants that overlaps my point. (Will bring food to me). (Not is point in circle, but what circles are overlapping my point.) I am

Address geolocation on own server

☆樱花仙子☆ 提交于 2019-12-10 10:59:20
问题 Disclaimer: Any API is NO OPTION for me because of the vast amounts of places I want to process. I know there are plenty of services out there but I'd like to have my own solution Ok, after this is said here my question :) There are platforms like OpenStreetMap and maybe others who are doing very well in bringing the world of maps into the open source community. What I need I have an address located anywhere in the world and I want to compute the latitude and longitude, elevation would be

How to translate a given coordinate into a bounding box of “diameter” x?

三世轮回 提交于 2019-12-10 10:45:30
问题 For example, I have a latitude and longitude in decimal format (as opposed to Degrees-Hours-Minutes like lat=44.1° 9.5' 30''). To search for nearby objects, I must specify the search "radius" as a rectangle with four values: north = 44.1; south = -9.9; east = -22.4; west = 55.2; Is there a formula or rule of thumb how to convert decimal lat/long values into a rectangular bounding box, such that the given latitude/longitude is in the center of that box? Must I fiddle around myself with a WGS84

get formatted_address from google maps api json

夙愿已清 提交于 2019-12-10 09:24:34
问题 I want to get the formatted_adress from the json array. an example link could be http://maps.googleapis.com/maps/api/geocode/json?latlng=55.397563, 10.39870099999996&sensor=false var url = "http://maps.googleapis.com/maps/api/geocode/json?latlng="+latlng+"&sensor=false"; $.getJSON(url, function(data) { var adress = data['formatted_address']; alert(adress); }); but im getting "undefined" 回答1: Here's the corrected JS.. Demo Fiddle var latlng = "55.397563, 10.39870099999996"; var url = "http:/

Reverse Geocoding using google maps api iOS

China☆狼群 提交于 2019-12-10 03:43:53
问题 I am doing reverse geocoding using following code - (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation { curLoc=newLocation; if (curLoc != nil) { latitude=curLoc.coordinate.latitude; longitude=curLoc.coordinate.longitude; //[self loadMap:latitude second:longitude]; [self MarkerPoint:latitude+0.04 second:longitude+0.1 third:latitude-0.04 forth:longitude-0.1]; NSError *error; NSString *lookupString = [NSURL

Implementing a geographic coordinate class: equality comparison

血红的双手。 提交于 2019-12-10 02:16:05
问题 I 'm integrating a geographic coordinate class from CodePlex to my personal "toolbox" library. This class uses float fields to store latitude and longitude. Since the class GeoCoordinate implements IEquatable<GeoCoordinate> , I habitually wrote the Equals method like so: public bool Equals(GeoCoordinate other) { if (other == null) { return false; } return this.latitude == other.latitude && this.longitude == other.longitude; } At this point I stopped and considered that I 'm comparing floating

What's the best way to lookup the US county a US city resides in?

自作多情 提交于 2019-12-10 02:09:34
问题 I'm looking for the best/easiest way to programmatically grab the name of the US county a given US city resides in. It doesn't seem there's a straightforward API available for such a (seemingly simple) task? 回答1: You can download a freely-available database of county/city/zip code info such as this one: http://www.unitedstateszipcodes.org/zip-code-database/ (no need to register or pay) Import it whole, or a subsection of it, into a local, persistent data store (such as a database) and query

convert the Address into Latitude and Longitude for Google Maps in iPhone

◇◆丶佛笑我妖孽 提交于 2019-12-10 00:12:41
问题 How to convert the Address into Latitude and Longitude in Objective C? I want to use Google Maps over there i iPhone. 回答1: This is called Geocoding. If you are using Google Maps, they provide their own geocoding service. For a detailed explanation of doing this on the iPhone, with code examples, see this blog post by Björn Sållarp: iPad/iPhone forward geocoding API using Google gecoding service 来源: https://stackoverflow.com/questions/3387039/convert-the-address-into-latitude-and-longitude-for

Google geocode API returns inconclusive results

血红的双手。 提交于 2019-12-09 19:25:56
问题 For some addresses that I attempt to geocode, google returns inappropriately inconclusive results. The following is an example, but it is not an isolated incident. The first returned result is the exact match, however google flags it as a "partial_match": Street address: 16160 Frederick Rd City: Gaithersburg State: MD Zip code: 20877 Link: http://maps.googleapis.com/maps/api/geocode/json?sensor=false&address=16160%20Frederick%20Rd,+Gaithersburg,+MD,+20877 My issue here is in determining which