geocoding

Database of US metropolitan area names?

假装没事ソ 提交于 2019-12-23 08:23:22
问题 I've been unsuccessful in trying to find a US metropolitan area (e.x. San Francisco Bay Area, South Bay, The Berkshires, Upstate New York, etc.) database that is defined by cities. Does anyone know if such a thing exists? Wikipedia has a list of "Intrastate Regions" here: http://en.wikipedia.org/w/index.php?title=List_of_regions_of_the_United_States#Intrastate_regions Except it would be a pain going through each 50 states, and then pulling out the area's article to find what cities said area

Codeigniter Google Maps API V3 Geocoding not working

痞子三分冷 提交于 2019-12-23 06:01:45
问题 I'm trying to use Biostall's Google Maps v3 API to map out a series of addresses, but when I try to type in an address, the Lon Lat produced is 0, 0 every time. It only works if I specifically put in the longitude and latitude of each address. Even the entries which Biostall used on his example video and documentation don't work. I'm trying to also use the geocodeCaching feature, please help. $this->load->library('googlemaps'); $config = array(); $config['zoom'] = 'auto'; $config[

Speed up addAnnotations from Google Geocoding?

一个人想着一个人 提交于 2019-12-23 04:43:38
问题 I have the following code in my app which adds a number of Annotations to a mapview via Google geocoding: for (PlaceObject *info in mapLocations) { NSString * addressOne = info.addressOne; NSString * name = info.name; NSString * address = [addressOne stringByAppendingString:@",London"]; NSError * error; NSString *urlString = [NSString stringWithFormat:@"http://maps.google.com/maps/geo?q=%@&output=csv", [address stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]]; NSString

Find the average (center) of lats/lngs

烂漫一生 提交于 2019-12-23 04:37:36
问题 I am dynamically plotting several points onto a google map. I'm trying to find the best way to find the center of the given points. I've tried using the following: var mapArray = new Array; mapArray[0] = new Array(42, 35.391228, -119.008401); mapArray[1] = new Array(34, 33.874277, -118.131555); mapArray[2] = new Array(214, 32.6922592, -115.4962203); mapArray[3] = new Array(216, 33.3818875, -117.2449785); mapArray[4] = new Array(40, 36.805231, -119.770192); mapArray[5] = new Array(47, 37

Need to calculate latitude longitude from postal code database when location has multiple codes

梦想的初衷 提交于 2019-12-23 03:35:18
问题 How do I calculate the lat/lon for a given location from a postal code database when there are multiple codes for a given location? For example, New York City has 165 postal codes. SQL example (There is also a Latitude and Longitude column in the table): SELECT City, [State], StateAbbr, Country, COUNT(*) AS ctCodes FROM PostalCodes WHERE (City = 'New York City' AND StateAbbr = 'NY') GROUP BY City, [State], StateAbbr, Country ORDER BY ctCodes DESC Returns: City | State | StateAbbr | Country |

Equivalent Objective-C code for Google Maps GMap2.getBoundsZoomLevel(bounds)?

时间秒杀一切 提交于 2019-12-23 01:18:12
问题 I'm familiar with the Google Maps API and I'm trying to learned the iOS MapKit library now. I have an iPhone application which takes an input string and geocodes it using Google Maps geocoder service. I also want to set an appropriate zoom level for the new map but I'm not quite sure how to do it. After reading, Determining zoom level from single LatLong in Google Maps API My plan was to parse the JSON response from the Google Maps API and extract the ExtendedData field. "ExtendedData":{

Find all parks for a given zipcode with google maps

心不动则不痛 提交于 2019-12-22 20:09:30
问题 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

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

老子叫甜甜 提交于 2019-12-22 17:45:50
问题 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

Geocoder doesn't work on some of the Android phones

落爺英雄遲暮 提交于 2019-12-22 15:01:07
问题 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 {

Function to convert coordinates in pandas series and append as additional series

孤街醉人 提交于 2019-12-22 01:19:28
问题 I'm looking to take as series of co-ordinates stored in a pandas dataframe and define a function that will go through each entry, transform it (BNG Easting Northing to Lat and Long) and save it to a new column in same row. This function by Elise Huard looks like it should do just this def proj_transform(df): #bng = pyproj.Proj(init='epsg:27700') bng = pyproj.Proj("+init=EPSG:27700") #wgs84 = pyproj.Proj(init='epsg:4326') wgs84 = pyproj.Proj("+init=EPSG:4326") lats = pd.Series() lons = pd