geocoding

Geocoding service for a startup?

非 Y 不嫁゛ 提交于 2019-12-05 00:51:55
问题 I'm working on an idea for a service that uses geocoded data (lat/lng) form a US address. Google maps API v3 has been awesome, until I read the terms of service and acceptable uses a little closer. The problem is that the terms seem to prohibit use of the maps API for any commercial use where the site is not freely accessibly to the public, such as a subscription based service. The alternative offered is Google Maps API Premier, but at $10,000 per year minimum, it's just not possible at this

GeoCoding in Rails for polygon bounds [closed]

久未见 提交于 2019-12-04 23:54:29
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 5 years ago . Is there a way in rails via some mapping API/gem where I can define map areas/map zones (with polygon bounds) and detect if an address falls within a particular zone/area. 回答1: This is easily done with geokit. First construct a polygon from LatLng: polygon = Geokit::Polygon.new([

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

萝らか妹 提交于 2019-12-04 22:28:13
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.Series() for idx, val in enumerate(df['Easting']): lon, lat = pyproj.transform(bng,wgs84,df['Easting'][idx]

Offline reverse geocoding on iOS

雨燕双飞 提交于 2019-12-04 21:11:10
There are lots of existing questions relating to this issue, but I have looked at as many of them as I could find and did not get an answer. I'm trying to perform an offline reverse geocoding lookup on iOS based on a latitude and longitude. I'd like to be able to provide a latitude and longitude, and be provided with the country in which that point lies. I can do this with Geonames (such as: http://api.geonames.org/countryCode?lat=45.03&lng=8.2&username=demo ), but I need a similar ability offline, without Internet functionality on the device. CLLocation does not provide offline services that

How to get the latitude and longitude from city name in android?

妖精的绣舞 提交于 2019-12-04 20:28:58
In my application am setting a default value to latitude and longitude . When i type the cityname in edittext i need to move that point to that place where i need Use the below code to get the lat and long of city name String location=cityName; String inputLine = ""; String result = "" location=location.replaceAll(" ", "%20"); String myUrl="http://maps.google.com/maps/geo?q="+location+"&output=csv"; try{ URL url=new URL(myUrl); URLConnection urlConnection=url.openConnection(); BufferedReader in = new BufferedReader(new InputStreamReader(urlConnection.getInputStream())); while ((inputLine = in

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

爱⌒轻易说出口 提交于 2019-12-04 19:29:50
How to convert the Address into Latitude and Longitude in Objective C? I want to use Google Maps over there i iPhone. 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-maps-in-iphone

How to represent geographical locations

社会主义新天地 提交于 2019-12-04 18:47:19
I make the user interface appear adding integration with facebook and enabling combining a search with a category and a location: This poses some problems to me not only with the facebook integration but also with locations. I don't fetch the locations from the datastore, I just put them in plain html: <select name="w" id="searcharea"> <option value="1" >Entire India</option> <option value="2" > Andaman & Nicobar Islands</option> <option value="3" > Andhra Pradesh</option> etc. We see that the option values make no sense: 1,2,3 has no meaning and I just put the numbers there. The records in

Census Batch Geocoding API with source addresses in data frame (not CSV) in R

假装没事ソ 提交于 2019-12-04 18:10:51
I am attempting to utilize the Census Bureau's batch geocoder ( http://geocoding.geo.census.gov/geocoder/Geocoding_Services_API.pdf ) with R. The input addresses are in a data frame, not a CSV. As the addresses are an intermediate step, I do not want to write them to a CSV. I have read several postings on stackoverflow. Hadley's solution ( Posting to and Receiving data from API using httr in R ) illustrates how to upload an existing CSV file. MrFlick's solution ( Uploading a csv to an api in R ) seems close to what I want but uses a string, not a data frame. Here's what I have in the way of

Getting latitude & longitude from address in android

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-04 18:00:37
问题 i am try to get latitude & longitude from address , problem is that .. when i give only city name than it give me correct latitude & longitude and when i give complete address (like state , city name , street No.) than it do not give me correct latitude & longitude ... thanks for your cooperative response ... my code is .. //String addressStr = "faisalabad";/// this give me correct address String addressStr = "Sainta Augustine,FL,4405 Avenue A"; Geocoder geoCoder = new Geocoder(MapClass.this,

How do I determine if an address is inside some boundaries on a map?

时间秒杀一切 提交于 2019-12-04 15:14:42
I am doing some initial research this and I know very little about the subject. I need to create a solution that can take an address and then determine if that address is within some predefined boundaries (probably a series of connected streets). Does anybody have some advice on where to get started? First you need to geocode the address ( http://code.google.com/apis/maps/documentation/geocoding/ ), then you can use my point in polygon library to check if it is in the bounds. Check it out here: http://blog.appdelegateinc.com/point-in-polygon-checking-with-google-maps.html Update: Check out the