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
6
votes
1 answer

Android Kotlin Geocoder DEADLINE_EXCEEDED on Android when getting location coordinates/adresses

In my android app i am trying to get the address from lat lng using the Geocoder using getFromLocation method and the GeocodeListener but sometimes the app is getting crashed Crash Log Caused by java.io.IOException: egma: DEADLINE_EXCEEDED: Deadline…
Chandra Shekhar
  • 3,550
  • 2
  • 14
  • 22
6
votes
0 answers

Google maps api geocoder - restrict to multiple countries

Im using google geocoder and I want to restrict result to some countries (for example I don't want to search in USA). Using: componentRestrictions: { country: 'de' } Works fine, but I would like to add more countries, tried…
kroma
  • 103
  • 1
  • 2
  • 9
5
votes
0 answers

Geocoder's getFromLocationName() always returns one result

In my code I am trying to display a list of 5 suggested addresses if the user inputs a string in an EditText. I use List
addressList = geocoder.getFromLocationName(searchString, 5); with searchString being the string that the user entered…
Bayan
  • 93
  • 1
  • 10
4
votes
2 answers

warnings found and -Werror specified [deprecation] LocationProvider in android.location has been deprecated

I facing the error: warnings found and -Werror specified /Users/sdaemoninfotech/Flutter/flutter/.pub-cache/hosted/pub.dartlang.org/geolocator-6.2.1/android/src/main/java/com/baseflow/geolocator/location/LocationManagerClient.java:10: warning:…
Ankur Shinde
  • 304
  • 4
  • 19
4
votes
1 answer

Geocoder getFromLocationName() returns just 1 result

Android Geocoder always returns just 1 possible address val addressesList = Geocoder(this.context).getFromLocationName("Toledo", 5) Expected : I want to get 5 possible addresses, which has Toledo in their names ( there are Toledo, USA; Toledo,…
4
votes
2 answers

Get latitude and longitude from zip code javascript

Im trying to write a function that will give return latitude and longitude from a zip code. I am attempting to use google maps api to do this. I am seeing that geocoder seems to be good for this but I am struggling to know how to use it. What im…
John
  • 73
  • 1
  • 1
  • 6
3
votes
5 answers

The plugin `geocoder` uses a deprecated version of the Android embedding

When I run pub get, I face the following error: The plugin geocoder uses a deprecated version of the Android embedding. To avoid unexpected runtime failures, or future build failures, try to see if this plugin supports the Android V2 embedding.…
Muhammad Arafat
  • 83
  • 1
  • 2
  • 8
3
votes
0 answers

geocoder.ip('me') work locally but not on heroku

I am using Django and need to get the user's current location, so I use geocoder.ip('me'). It works fine locally, but after I deploy it on Heroku, it seems like it's not working. Is that because the IP address or something like that? How can I fix…
Veronique
  • 39
  • 3
3
votes
1 answer

PlatformException when calling Geocoder.local.findAddressesFromCoordinates

How can I convert location latitude and longitude to a formated address? I'm trying with geocoder plugin but the line- await Geocoder.local.findAddressesfromCoordinates(coordinates) gives me an error with showing platform exception. I used this…
Bijoya_Banik
  • 387
  • 4
  • 12
3
votes
1 answer

Here Maps: How to retrieve speed limit information in an efficent way?

We are trying to retrieve speed limit information for a specific point (latitude, longitude). We are using the Geocoder API and Fleet Telematics Advanced Data Sets from Here Maps. For some GPS points, the speed limit values retrieved does not match…
Toni
  • 31
  • 2
3
votes
0 answers

Is there any difference between Android Geocoder Class and Google Geocoder API?

I want to launch my application, which is using Reverse Geocoding with the help of Geocoder Class but I want to ask whether this cause any problem further? Like do I have to add API KEY in my project? Limitations in Geocoder Class (quota)? I…
Saharsh Pandey
  • 160
  • 1
  • 8
2
votes
3 answers

How to geocode by full address or, if full address fails, only postal code?

Geocoder gem has been working great if I provide a valid address. But if address is invalid it fails to geocode. How can I geocode by postal code if geocoding by full address fails? geocoded_by :address after_validation :geocode def address …
Ajit Singh
  • 63
  • 8
2
votes
2 answers

functions/events using Mapbox API Geocoder Marker

I'm asking this because I have done this in Google Maps API, but haven't found any documentation for this on Mapbox API so far. I would like to be able to create functions with the geocoder marker. The closest thing I found about manipulating the…
user2712882
  • 81
  • 1
  • 3
  • 13
2
votes
3 answers

Import leaftlet-control-geocoder in Angular 8 Project?

angular verison: 8 version in package.json: "leaflet": "1.5.1", "leaflet-draw": "1.0.4", "leaflet-sidebar-v2": "3.0.3", "esri-leaflet": "2.3.2", "leaflet-control-geocoder": "1.10.0" I have import leaflet and other like this: import * as L from…
2
votes
1 answer

Why does Geocoder (1.38.1) output None?

Why does the below piece of code give None as the output? import geocoder g = geocoder.google('Mountain View, CA') print g.latlng
1
2 3
12 13