geocoding

Android; Geocoder, why do I get “the service is not available”?

佐手、 提交于 2019-11-26 22:58:34
I want to use the Geocoder in an android application, I've got the following piece of code to sample it : public class LocatorGeo extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Geocoder geo = new Geocoder(getApplicationContext()); List<Address> myAddrs = new ArrayList<Address>(); try { myAddrs = geo.getFromLocationName("CO100AR", 1); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } } I get the following stack

Geocode database [closed]

本秂侑毒 提交于 2019-11-26 22:39:34
问题 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 3 years ago . Can I download address,city,state,postalcode - latitude/longitude information, that can be loaded to a db for US alone.. Also do comment about their accuracy and coverage.. I suppose all GPS devices do this.. any pointers where I can extract this info?? I tried google maps json

Reverse Geocoding Without Web Access

旧街凉风 提交于 2019-11-26 22:39:14
问题 I am working on an application where one of the requirements is that I be able to perform realtime reverse geocoding operations based on GPS data. In particular, I must be able to determine the state/province to which a latitude, longitude pair maps and detect when we have moved from one state/province to another. I have a couple ideas so far but wondered if anyone had any ideas on either of the following: What is the best approach for tackling this problem in an efficient manner? Where is a

After months of 100% stability, today I get 403 Error on google maps services

╄→尐↘猪︶ㄣ 提交于 2019-11-26 21:55:07
问题 I was just wondering if someone could shed some light on why I am seeing 403 Forbidden errors for my google maps services. I had been loading the maps api as such: <script type="text/javascript" src="//maps.googleapis.com/maps/api/js?libraries=places&sensor=false"></script> And then using both the geocoding and autocomplete libraries to turn user searches into co-ordinates to display on a map on my search results. This was working perfectly (for months) until yesterday, when I started seeing

Forward geocoding from the iPhone

戏子无情 提交于 2019-11-26 21:52:00
Given that the mapkit doesn't provide forward geocoding functionality today, can anyone provide help on how I can i use a search bar to return a latitude and longitude coordinate from a user inputted address today. If someone can provide sample code that would be great. iOS 5 now allows for forward Geocoding: http://developer.apple.com/library/ios/#documentation/UserExperience/Conceptual/LocationAwarenessPG/UsingGeocoders/UsingGeocoders.html#//apple_ref/doc/uid/TP40009497-CH4-SW5 I hope this helps! Merrimack I've created a forward geocoding API for Google's geocoding server. Check out my

Get nearest places on Google Maps, using MySQL spatial data

五迷三道 提交于 2019-11-26 21:47:39
I have a database with a list of stores with latitudes and longitudes of each. So based on the current (lat, lng) location that I input, I would like to get a list of items from those within some radius like 1 km, 5km etc? What should be the algorithm? I need the PHP code for algorithm itself. Gaurav You just need use following query. For example, you have input latitude and longitude 37 and -122 in degrees. And you want to search for users within 25 miles from current given latitude and longitude. SELECT item1, item2, ( 3959 * acos( cos( radians(37) ) * cos( radians( lat ) ) * cos( radians(

Calculate Earth convex hull polygon area given latitude and longitude

家住魔仙堡 提交于 2019-11-26 21:40:43
问题 I have searched for explanations and algorhitms how to calculate Earth's polygon surface area. I've found this and this Lets say I got already convex hull points [56.992666,24.126051], [58.00282,25.930147], [58.787955,25.565078], [59.4997,24.861427], [59.463678,24.711365], [59.395767,24.599837], [56.992666,24.126051] From second link the first answers uses Python library and second answer approach won't give quite precise area even if we assume that Earth is sphere (am I right)? What

How to invoke webservice from SQL Server stored procedure

大兔子大兔子 提交于 2019-11-26 21:30:30
问题 I would like to know how to use a web service from a SQL Server stored procedure. I have a table in which the columns specify the city and state of the user. I want to pass this address as a parameter to Google Geocoding API web service and get the latitude and longitude. I have successfully made use of this geocoding api in c#. But now, I want to use it in a stored procedure. Can any one please suggest how to get this done? Or please provide me any links? Any help will be appreciated!!

Create or update mapping in elasticsearch

走远了吗. 提交于 2019-11-26 19:48:05
问题 I am new to Elasticsearch and am currently working on implementing a geo_distance filter for searching. As of now my index has the following mapping (I've removed some fields): { advert_index: { mappings: { advert_type: { properties: { __v: { type: "long" }, caption: { type: "string" }, category: { type: "string" }, **location: { type: "long" },** } } } } The geo_distance field is going to be implemented on the location field, where an example instance looks like this: "location": [ 71, 60 ],

This API project is not authorized to use this API. Please ensure that this API is activated in the APIs Console

与世无争的帅哥 提交于 2019-11-26 18:27:27
I have a latitude, and longitude : "-27.0000,133.0000" . I want produce a map base on that. I've tried go to this link https://maps.googleapis.com/maps/api/geocode/json?latlng=-27.0000,133.0000&key=****** I keep getting this error on the browser { "error_message" : "This API project is not authorized to use this API. Please ensure that this API is activated in the APIs Console: Learn more: https://code.google.com/apis/console", "results" : [], "status" : "REQUEST_DENIED" } But I think I already enable that API. I log-in to my Google Console, and double check. When I go to : https://console