reverse-geocoding

Unable to Reverse Geocode From Marker Click

半世苍凉 提交于 2019-12-25 06:26:14
问题 I wonder whether someone may be able to help me please. I'm trying to put together the reverse geocode functionality for this page, where the user clicks on a map marker and the reverse geocode is performed, populating a text field with the output address. I thought I had the issue sorted out after I received some great advice from this site, but I just can't seem to resolve the issue I have. I can populate the text fields with the marker lat and lng co-ordinates but I just can't get any

Update property using Geocoder to get user actual address, EXC_BAD_ACCESS

…衆ロ難τιáo~ 提交于 2019-12-24 14:26:03
问题 Im relatively a new iOS developer, and im dealing with the geocoder completion handler , i do not understand how to update a variable with the address find by the geocoder and the do some stuff with it. In few words, i want that the geocoder block finishes to use the info in some method . - (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation { NSLog(@"didUpdateToLocation: %@", newLocation); CLLocation

Google Batch Geocoding API

痴心易碎 提交于 2019-12-24 10:46:35
问题 I am using Google Geocoding API to conduct both forward and reverse geocoding work in my projects. While this API is only working for a single address or a single pair of geo coordinates per request, not for batch processing. I know I can copy and paste lines of addresses up to 250 to the Batch Geo Website to process, but it would be so limited and ineffectively to me if I did that. Initially, I called REST API by PHP curl in my codes, while for batch data I have no idea how to handle and I

how to get city name using latitude and longitude in android

社会主义新天地 提交于 2019-12-23 15:02:16
问题 I am trying to get city in TextView using latitude and longitude. I am getting IndexOutOfBoundsException . AndroidGPSTrackingActivity.java import android.app.Activity; import android.location.Address; import android.location.Geocoder; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.TextView; import android.widget.Toast; import java.io.IOException; import java.util.List; import java.util.Locale; import static com.example.khaledsb.location

objective c how to get placemarks of given coordinates

落爺英雄遲暮 提交于 2019-12-23 11:53:26
问题 I have a question related to reverse geo-coding. In my app, I have some coordinates (not my current coordinates) and I want to convert them into placemarks. I've dug a lot of websites and codes but they are all about reverse geocoding of current location... Is there any way to get placemarks of specified coordinates (which are not current location)? And if there is, please help me with some code or references. 回答1: You can achieve this in two ways:- First way:- Get the info using google api -

How can I reverse geocode with google maps api?

Deadly 提交于 2019-12-23 05:35:15
问题 I am using the following code to display google maps on my website with autocomplete functionality. I would like to be able to reverse geocode using the longitude and latitude and echo the address on my page. How is this implemented am I on the right path? <script type="text/javascript"> function initialize() { var mapOptions = { center: new google.maps.LatLng(-33.8688, 151.2195), zoom: 17, mapTypeId: google.maps.MapTypeId.ROADMAP }; var map = new google.maps.Map(document.getElementById('map

Find nearest known location: Google Reverse Geocoding

折月煮酒 提交于 2019-12-23 03:34:08
问题 I am required to get the formatted address of a given coordinates using Google Maps API. I use the Google Reverse Geo coding for finding the location name. This works fine when there is a name available for the location in the Google maps database. Most of the times, the given coordinates are from a location far off from city boundaries (on a highway for example). The function returns ZERO_RESULTS as there is no name defined on the map. Requirement is to find the nearest known location

How to get latitude and longitude from address on Android?

给你一囗甜甜゛ 提交于 2019-12-23 03:29:09
问题 I am beginner in Android and I am working to create the Google Map which is able to mark the specific location from address. For now, my following code is able to mark "empire state building" but nothing others..:< I want to know how to get latitude and longitude from street address or full address, and mark it on the map. I modified the manifest file for supporting Google Map view like INTERNET and ACCESS_COARSE_LOCATION Thank you. package cs2340.kiwi.HelloGoogleMaps; import java.io

Reverse geocoding from given coordinates (not current location, but manually provided)

坚强是说给别人听的谎言 提交于 2019-12-23 02:58:09
问题 I am fetching GPS information of all my images and they are stored in a Dictionary. I would pass on the lat & long values from this dictionary to the reverseGeocodeLocation function call & store the results in my database. The problem here is that this function is an asynchronous call & I need to synchronize the whole process for my record to get inserted into the table. Eg: My array read following coordinates: 32.77003,96.87532. It now calls the reverseGeocodeLocation function, passing on

How to get Geocoder’s results on the LatLng’s country language?

廉价感情. 提交于 2019-12-23 02:09:19
问题 I use reverse geocoding in my app to transform LatLng objects to string addresses. I have to get its results not on device’s default language, but on the language of the country where given location is settled. Is there a way to do this? Here’s my code: Geocoder geocoder = new Geocoder(context, Locale.getDefault()); List addresses; try { addresses = geocoder.getFromLocation(location.latitude, location.longitude, 1); } catch (IOException | IndexOutOfBoundsException | NullPointerException ex) {