geocoding

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

你。 提交于 2019-12-06 10:25:47
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 thinking of storing lat/lng as geography type in SQLServer 2008. Is this the way to do it? Can I query

Map Highlight Odd/Even Side of Street

夙愿已清 提交于 2019-12-06 10:08:24
I have two coordinates of a street. Either both Odd or Even. So for example 15 ABC Street and 77 ABC Street (with their reverse geocode). I'm trying to draw a path line that is near the sidewalk. I used google maps api and did not find a way to do it. The directions api draws a line in the middle of the road, and I cannot find a way to do a geometric translation to either side of the street. I don't mind using any other API as long as I can solve the problem. 来源: https://stackoverflow.com/questions/33886715/map-highlight-odd-even-side-of-street

Efficiency of Google Geocoding with Dispatch Queue - How to Improve - iPhone

别来无恙 提交于 2019-12-06 09:05:46
I have a Google Map view in my app which is populated with pins via geocoding. I am using the below code to create a dispatch queue which then queries Google for the longitude and latitude for each place in my app. The problem is that although the below code works to some extent, it seems to miss a large percentage of items on its first run through. These items are added to the array "failedLoad" as per the code below. At the moment I am running a second method to add the places in failedLoad which is called whenever the ViewDidLoad method is called. However this is a poor solution as even

Address geolocation on own server

﹥>﹥吖頭↗ 提交于 2019-12-06 08:42:32
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 nice but doesn't really matter. I've seen plenty of solutions offered around OpenStreetMap to generate

Windows Phone - get zoom level from distance

浪尽此生 提交于 2019-12-06 07:33:45
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 If I understated you correctly, you can achieve the goal by using the following code var start = ...; var finish = ...; // Calculate center var center = new GeoCoordinate((start.Latitude + finish.Latitude) / 2, (start

How can I find lat long of a point with a given lat long value and distance

≯℡__Kan透↙ 提交于 2019-12-06 07:23:03
问题 I have a point A (52.132781727864, -106,63492619991302). From point A i would like to get the lat, long of point B which is 5 km South from point A. How can I get the the lat long of point B? I'm coding in Java. Edit: If the point is in South-East what should I do? 回答1: 5km in angles = ((5 / (6371 * pi)) * 180) = 0.0449660803. This number should be subtracted from the latitude. Longitude remains same. PS. Thanks to Carlos Heuberger for correction. 回答2: http://en.wikipedia.org/wiki/Great

Need Google Geocoding to return City name in English

♀尐吖头ヾ 提交于 2019-12-06 06:30:38
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->AddressDetails->Country->AdministrativeArea->SubAdministrativeArea->Locality->LocalityName; } This returns the

Maps API keys for geocoding not working

痞子三分冷 提交于 2019-12-06 05:56:36
I have read your answer on this. Maps API keys for geocoding not working anymore? Currently I am trying this: https://maps.google.com/maps/api/geocode/json?address=n&sensor=true&key=apikeygoeshere Giving me error: This API project is not authorized to use this API. Please suggest how can I complete my app. I am searching locations for my App.I can buy business plan later but for now I need to test for development. I have following services on: Google Maps Coordinate API, Google Maps Engine API, Google Maps Geolocation API, Google Maps JavaScript API v3, Google Maps SDK for iOS, Places API.

Geocoder doesn't work on some of the Android phones

若如初见. 提交于 2019-12-06 05:29:45
I am working on Android application which allows user to enter the address and converts to latitude and longitude for further use. I am using following code to get lat and long addresses = geocoder.getFromLocationName("11381 zapata ave san diego", 1); if (addresses.size() > 0) { double latitude = addresses.get(0).getLatitude(); double longitude = addresses.get(0).getLongitude(); addGeoFence(latitude, longitude); tlFragmentMap.setLatLong(new LatLng(latitude, longitude)); return true; } else { return false; } This Geocoder works fine on some of the phones only. Can any one suggest me a way to

Find all parks for a given zipcode with google maps

送分小仙女□ 提交于 2019-12-06 05:26:37
I'm trying to use the Google maps geocode API to return all parks for a given zip code. It seems that if I have a park name I have no problem returning the data. Such as http://maps.googleapis.com/maps/api/geocode/json?address=Kerry+Park+98122&sensor=false However, if i search for parks for a zip code http://maps.googleapis.com/maps/api/geocode/json?address=Parks+near+98122&sensor=false I get any result for the zip code with parks in the address. I tried using lanlng but that has the same problem. It seems that Google doesn't allow types[] in query just the results which is unfortunate. If I