reverse-geocoding

Why is my reverse geocoding not working and displaying?

心不动则不痛 提交于 2019-12-02 16:13:23
问题 I have a nearby search map, in every open of this map page, it returns the current position, now When I get the current position by coordinates, I want to reverse geocode it into an address name, the problem is I modified my code from this source: https://developers-dot-devsite-v2-prod.appspot.com/maps/documentation/javascript/examples/geocoding-reverse with <script> function getPosition() { navigator.geolocation.getCurrentPosition(position => { currentLatLon = [position.coords.latitude,

Why is my reverse geocoding not working and displaying?

旧城冷巷雨未停 提交于 2019-12-02 10:34:37
I have a nearby search map, in every open of this map page, it returns the current position, now When I get the current position by coordinates, I want to reverse geocode it into an address name, the problem is I modified my code from this source: https://developers-dot-devsite-v2-prod.appspot.com/maps/documentation/javascript/examples/geocoding-reverse with <script> function getPosition() { navigator.geolocation.getCurrentPosition(position => { currentLatLon = [position.coords.latitude, position.coords.longitude]; infowindow = new google.maps.InfoWindow(); map = new google.maps.Map( document

Reverse Geocode On Google Maps api v3

余生颓废 提交于 2019-12-02 04:14:38
I wonder whether someone may be able to help me please. I using the code shown below to correctly plot markers retrieved from a MySQL database on a Google Map. <script type="text/javascript"> //Sample code written by August Li var icon = new google.maps.MarkerImage("images/location-marker-2.png") new google.maps.Point(16, 32); var center = null; var map = null; var bounds = new google.maps.LatLngBounds(); function addMarker(lat, lng, info) { var pt = new google.maps.LatLng(lat, lng); bounds.extend(pt); var marker = new google.maps.Marker({ position: pt, icon: icon, map: map }); } function

How to get country, city from place picker's address?

浪尽此生 提交于 2019-12-01 15:10:03
问题 I am using a place picker's intent to get the place. Now I want to save address in separated form as country,city,pincode,state. How can I get all this from the place picker's address? Code: public class NameOfBusinessFragment extends Fragment { int PLACE_PICKER_REQUEST = 1; int RESULT_OK = -1; PlacePicker.IntentBuilder builder = new PlacePicker.IntentBuilder(); EditText category,location; @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle

Techniques for offline reverse geocoding on a mobile device?

流过昼夜 提交于 2019-12-01 13:42:32
I am working on a mobile mapping application (currently iOS, eventually Android) - and I am struggling with how to best support reverse geocoding from lat/long to Country/State without using an online service. Apple's reverse geocoding API depends on Google as the backend, and works great while connected. I could achieve similar functionality using the Open Street Maps project too, or any number of other web services. What I really want however is to create a C library that I can call even when offline from within my application, passing in the GPS coordinates, and having it return the country

Status code 0 on Google geocode API from iPhone/sim, but works fine on web (Non English characters)

荒凉一梦 提交于 2019-12-01 11:31:37
Try: http://maps.googleapis.com/maps/api/geocode/json?address =Őrbottyán,Hungary&sensor=true On an iPhone 4 & simulator, -(void)requestFailed:(ASIHTTPRequest *)request { NSLog(@"geocode fail code: %d",[request responseStatusCode]); NSLog(@"geocoding failed: %@",[request responseString]); } 2011-06-01 11:36:27.343 app[1174:307] geocode fail code: 0 2011-06-01 11:36:27.345 app[1174:307] geocoding failed: (null) In a browser I get: "results" : [ { "address_components" : [ { "long_name" : "Őrbottyán", "short_name" : "Őrbottyán", "types" : [ "locality", "political" ] }, { "long_name" : "Pest",

Techniques for offline reverse geocoding on a mobile device?

我是研究僧i 提交于 2019-12-01 09:54:36
问题 I am working on a mobile mapping application (currently iOS, eventually Android) - and I am struggling with how to best support reverse geocoding from lat/long to Country/State without using an online service. Apple's reverse geocoding API depends on Google as the backend, and works great while connected. I could achieve similar functionality using the Open Street Maps project too, or any number of other web services. What I really want however is to create a C library that I can call even

Status code 0 on Google geocode API from iPhone/sim, but works fine on web (Non English characters)

本秂侑毒 提交于 2019-12-01 08:16:17
问题 Try: http://maps.googleapis.com/maps/api/geocode/json?address=Őrbottyán,Hungary&sensor=true On an iPhone 4 & simulator, -(void)requestFailed:(ASIHTTPRequest *)request { NSLog(@"geocode fail code: %d",[request responseStatusCode]); NSLog(@"geocoding failed: %@",[request responseString]); } 2011-06-01 11:36:27.343 app[1174:307] geocode fail code: 0 2011-06-01 11:36:27.345 app[1174:307] geocoding failed: (null) In a browser I get: "results" : [ { "address_components" : [ { "long_name" :

How to force language in which reverse geocoding data on iOS is received?

佐手、 提交于 2019-12-01 06:47:18
问题 When i call geocoder reverseGeocodeLocation:currentLoc completionHandler: i get all the data (city, county, ...) in a language according to locale set on iphone. How can i force to always get this data in English? 回答1: You can not force the language of the geo data retrieved from CLGeocoder or MKReverseGeocoder . It will always be the system language of the device. If you want to get the data in English you need to built your own geocoder which is relatively easy to implement with the Google

Using Task.wait() application hangs and never returns

▼魔方 西西 提交于 2019-12-01 03:25:51
I am new to C# and using Task . I was trying to run this application but my application hangs every time. When I am adding task.wait() , it keeps waiting and never returns. Any help is much appreciated. EDIT: I want to call DownloadString Asynchronously. And when I am doing task.Start() as suggested by "Austin Salonen" I don't get the address of location but default value in location string from returnVal. It means that location got value assigned before task got completed. How can I make sure that after task is completed only then location gets assigned returnVal. public class