geocoding

Applying Information from one table to a separate table in same database?

元气小坏坏 提交于 2020-01-03 02:50:09
问题 I have TABLE 1 that contains zip codes and their location information (i.e longitude, latitude, etc), TABLE 2 contains the properties with their addresses... I need to connect the longitude and latitude of the zipcodes in the TABLE 1 to the addresses in TABLE 2 >> to be able to create a search that gives the nearest properties in a (x)mile radius of a specific zip code... I'm not sure how to do this. Do I need to combine the two tables? Or can I do a search that pulls info from both

Converting coordinates to WGS84

允我心安 提交于 2020-01-03 02:48:11
问题 I have the following function which plots a Circle given the centroid, but I want the coordinates to be In WGS84. var coords = new List<Tuple<double, double>>(); const double EARTH_RADIUS_NM = 3437.670013352; var lat = (latIn * Math.PI) / 180; var lon = (lonIn * Math.PI) / 180; double d = radiusIn / EARTH_RADIUS_NM; for (int x = 0; x <= 360; x++) { double brng = (x * Math.PI) / 180; var latRadians = Math.Asin(Math.Sin(lat) * Math.Cos(d) + Math.Cos(lat) * Math.Sin(d) * Math.Cos(brng)); var

Map Highlight Odd/Even Side of Street

烂漫一生 提交于 2020-01-02 17:33:06
问题 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

Geocoding in android returns null value

六月ゝ 毕业季﹏ 提交于 2020-01-02 07:18:10
问题 i am doing geocoding in android get location from edittext and convert it into lat long and display on map but my address variable and list and has null values my address is like beauty Box A-9/1 my code is Geocoder gc = new Geocoder(this); Address d ; double latitude = 0 ; double longitude = 0; try { List<Address>locname = gc.getFromLocationName(name, 5); d = locname.get(0); latitude = d.getLatitude(); longitude= d.getLongitude(); } catch (IOException e) { // TODO Auto-generated catch block

Android geopoint from location/locality

送分小仙女□ 提交于 2020-01-02 06:34:10
问题 I have seen numerous examples of getting location name from Geocoder and then get addresses by getFromLocation() but how can I get geoPoint for a location by name. User enters a city name and I turn them into a geopoint and show on map. Is there a way in Android or google API's. I dont mean current location but any location by giving its name. Basically I want it to allow user to get weather update for remote cities.I am able to do so for current location by getting current locality. 回答1: Try

Java library to get geo-code from ipaddress

妖精的绣舞 提交于 2019-12-30 10:45:32
问题 My application knows the IP address of the user. We need to identify the city, state, country of the user and latitude & longitude of the user. Is there a java library that can do this? If there is none, what is algorithm or data-source used to convert IP address to geo-graphic location? 回答1: http://www.maxmind.com/app/developers provides a local database and java classes to calculate the location information from IP address. I did some testing. The results seem to be good. bbc.co.uk: 212.58

Java library to get geo-code from ipaddress

无人久伴 提交于 2019-12-30 10:45:16
问题 My application knows the IP address of the user. We need to identify the city, state, country of the user and latitude & longitude of the user. Is there a java library that can do this? If there is none, what is algorithm or data-source used to convert IP address to geo-graphic location? 回答1: http://www.maxmind.com/app/developers provides a local database and java classes to calculate the location information from IP address. I did some testing. The results seem to be good. bbc.co.uk: 212.58

Google Maps API Geocode Synchronously

自闭症网瘾萝莉.ら 提交于 2019-12-30 08:06:09
问题 I was wondering if its possible to geocode something using googlemaps api synchronously so instead of waiting for a callback function to be called, it would wait for a value to be returned. Has anyone found a way to do something like this. P.S.: I'm using version 3 of the api 回答1: The Geocoder calls your callback function with the value. That's the only way to do it. If it were synchronous, your script would freeze while it waited for the Geocode to process. There really isn't any reason to

Offline Reverse Geocoding in Python

拜拜、爱过 提交于 2019-12-30 03:32:06
问题 I am writing a Python script that passes a latitude and longitude to a module and performs a reverse geocode function to return the address of the location. I have been using Google's PyGeoCoder to do this, but it requires access to the Internet. I am needing something similar to PyGeoCoder but open sourced and completely offline. 回答1: Have you considered using OpenStreetMap? You can download the whole database (the "planet") or one of the extracts if you just need a specific area. Afterwards

Autofill Address + Google Maps API

我与影子孤独终老i 提交于 2019-12-29 10:36:09
问题 I want to present my users with a text box wherein they can type in their address. As they type their address, I want to provide the users with suggestions/predictions of what address they are trying to type. I'm also concerned about the relevance of this address (e.g. that the address is not an address halfway across the world). Is this possible? I'm using jQuery. 回答1: You can use Google Places API to have an autocomplete for address. When address is selected, address_components field