Questions tagged [geocoder]

An Android class for handling geocoding and reverse geocoding.

A class for handling geocoding and reverse geocoding. Geocoding is the process of transforming a street address or other description of a location into a (latitude, longitude) coordinate. Reverse geocoding is the process of transforming a (latitude, longitude) coordinate into a (partial) address. The amount of detail in a reverse geocoded location description may vary, for example one might contain the full street address of the closest building, while another might contain only a city name and postal code. The Geocoder class requires a backend service that is not included in the core android framework. The Geocoder query methods will return an empty list if there no backend service in the platform. Use the isPresent() method to determine whether a Geocoder implementation exists.

https://developer.android.com/reference/android/location/Geocoder.html

181 questions
0
votes
0 answers

How to define Geocoder returns language?

I'm triying to get the actually user country with Geocoder . The problem is that sometimes it returns countries' names in English and another times in Spanish. I'm using the same physical device in the same location. How to define the countries'…
0
votes
1 answer

Geocoder and Gmaps are not working in Jupyter Notebook

I'm trying to use geocoder to get a desired output for altitude using latitudes and longitudes but it returns 'none' as output. I've even tried testing geocoder with documentation codes to verify if outputs work but still receive 'none' as…
0
votes
0 answers

Android Studio: app crash while using AutocompletrTextView with Adapter and Geocoder

I'm trying to create an application that suggests city names taken from the geocoder when I use the autocompletetextview, but the application crashes when I update the arrayList within the OnTextChanged method. I have tried to remove some parts of…
Mettthew
  • 1
  • 1
0
votes
2 answers

Why do I receive an error when I parse through a dataframe but not when it is a single row?

New to python. Im working with pygeocodio library in python API_KEY = "myapikey" from geocodio import GeocodioClient client = GeocodioClient(API_KEY) addresses = client.geocode("21236 Birchwood Loop, 99567,…
user11777262
0
votes
0 answers

Why Geocoder.search("Sam Francisco") returns "Damascus, Syria"?

Geocoder.search("Sam Francisco")returns returns "Damascus, Syria" instead of any matching result. For example: "San Francisco, US" or "Sam, Sweden" or "Francisco, IN" etc. Does anyone have idea why? Steps to reproduce Set bing lookup and ipstack as…
Mara
  • 1
0
votes
2 answers

How to Loop Over a list of addresses for Longitude and Latitude (Python)

I'm trying to loop over a list of addresses that I have (Street Name, City, State, Zipcode) in order to get longitudes and latitudes for address in addresses: g = geolocator.geocode(address) print(g.address) …
ynnad
  • 73
  • 1
  • 6
0
votes
3 answers

Cannot read property 'results' of undefined - var lat = data.results[0].geometry.location.lat;

Getting error when I added the location and press enter var lat = data.results[0].geometry.location.lat; TypeError: Cannot read property 'results' of undefined and sometimes it gives cannot read 'geometry' of undefined error //CREATE - add new…
0
votes
1 answer

Google Maps Geocoder Marker is not working on AngularJS

I'm working with the Google Maps Geocoder service for AngularJS framework, but hadn't been able to show any markers so far. Everything else seems to be working fine, but I really need the markers. Here's my app.js: angular.module('modelApp',…
Andrew Sunset
  • 39
  • 2
  • 12
0
votes
2 answers

After June, 6th 2019 I'm having many errors using Android Geocoder class. It only says GPRC Failed

I have a call to the Android Geocoder function getFromLocation it used to work most of the times before June, 6, 2019. But after that it fails a lot. I used to have less than 10 errors before that day, then on the 6th it spiked to a 100 and it's…
Pedro Malta
  • 198
  • 9
0
votes
1 answer

How to test Geocoder locally?

I'm doing an app where I need to request the user's latitude and longitude by his IP. I've tried any other solution from stack overflow but they all seem outdated and doesn't work very well, like this one Geocoder, how to test locally when ip is…
0
votes
1 answer

Getting android device location

i was building an app where i need to get the device location and heres the code i used Double latitude = 0.0; Double longitude = 0.0; String TAG = "HomeActivity"; Location gpsLoc = null, networkLoc = null, finallLoc = null; …
Jhon
  • 99
  • 3
  • 15
0
votes
1 answer

Passing a cookie into geocoder

I have an address saved as a cookie and now I want to pass it through geocoder to get it's lat and lng to show a map view. the data that cookies[:location] has stored is {"location"=>"1 E 161 St, The Bronx, NY 10451"}, how do I get it so that just…
0
votes
2 answers

How to get the State or Province using Geocoder Php

I'm wanting to reverse geocode coordinate to get the address using Geocoder-php. I'm able to get the Address Collection using $geo = app('geocoder')->reverse($lat, $lng)->get(). According to these docs found on github for Geocoder-php you can…
xslibx
  • 4,249
  • 9
  • 35
  • 52
0
votes
1 answer

Geocoder getFromLocationName() not working, returning 0 values

I want to get a list of the 5 adresses more similar to the string passed, but something is not working. For example, if I write "avenida" there are thousands of "avenida" streets in spain, but the method getFromLocationName returns 0. private void…
NullPointerException
  • 36,107
  • 79
  • 222
  • 382
0
votes
3 answers

finding location using geocoder api in pandas

I have a series of city name in pandas dataframe. For that I need to find out the address of particular city and store them at separate column in the same dataframe. City column contain NaN values too. I am getting address for a given location /…
Kavikayal
  • 143
  • 4
  • 14