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
1
vote
1 answer

Setting up Geocoder with Sinatra and ActiveRecord?

I have a MYSQL database which is accessed using ActiveRecord and Sinatra. I am trying to perform certain geolocation task on the records in the tables. However, i believe my syntax is wrong as extending the geocoder class makes my CRUD request…
Carrein
  • 3,231
  • 7
  • 36
  • 77
1
vote
2 answers

Use Leaflet Geocoder without setting a marker when searching

currently I am using the leaflet map and added this geocoder plugin: https://github.com/perliedman/leaflet-control-geocoder. My problem is, that everytime I search for a place, it also sets a marker at this location, but I don´t want it to. It…
1
vote
1 answer

Check a dataframe column to see if a bool if True/False, if False, geocode only those values

I am using the [geocoder python API library][1]. I have a pandas dataframe column of boolean True/False based on if I already have that particular address geocoded or not. Is there a way to modify my existing code to geocode based on if I have it…
David
  • 53
  • 2
  • 6
1
vote
1 answer

Geocoder - How to use near query with multiple points?

I have one model Store, Every store has its radious limit for delivery. For an example, Store 1 can delivery within 10 miles Store 2 can delivery within 30 miles So i have diffrent points for every store, In past i was used below query to find out…
Vishal
  • 7,113
  • 6
  • 31
  • 61
1
vote
1 answer

onMapReady receive null LatLng

I have an issue with onMapReady. When i pass an address like this: LatLng myAddressCoordinates = getLocationFromAddress("Piazza Ferretto Mestre"); Both map and marker work fine but when i pass the address reading from a textview: LatLng…
Alex
  • 23
  • 5
1
vote
1 answer

How to get the exact coordinates using a address in React-Native

I using mapbox to show a map in my app but I need show a location using a addres, so I use the geocoder to convert the address in coordinates but these coordinates that I get are wrong, when a print these in the map, the map show me other place, in…
WI HERMES
  • 11
  • 1
  • 3
1
vote
1 answer

reverse geocoding don´t show address

I used reverse geocoding from Google Maps to get an address, and the first time it worked, put the address completely, but now it just shows me latitude and longitude, no name, in any address. Can someone help me? My code: private class…
1
vote
3 answers

Reverse query a location in Rails-Geocoder with max distance attribute

For an example, I have a model like this class Place < ActiveRecord::Base # has a "latitude" & "longitude" field # notice it has "max_distance" field (meter), will be different on each record end How can I achieve a query that given a…
dkiswanto
  • 192
  • 1
  • 2
  • 12
1
vote
0 answers

getFromLocation in API Level 19

i have a function getCountry which return country name: public String getCoutry(double longitude, double latitude){ Geocoder geocoder = new Geocoder(getBaseContext(), Locale.getDefault()); String country = ""; List
address =…
T. Nowacki
  • 99
  • 1
  • 12
1
vote
1 answer

Android Geocoder behaves different on some devices

I have the below code, it works perfectly on some devices and in others the function getFromLocationName return a list with size 0. For example, in Nexus 6p it returns the correct result and in Meizu MX5 it returns a list with size 0. I have the…
Elior
  • 3,178
  • 6
  • 37
  • 67
0
votes
1 answer

Is Batch processing available in google geocode API

I have gone through google geocode documenation: https://developers.google.com/maps/documentation/geocoding/requests-geocoding It says: 50 requests per second, calculated as the sum of client-side and server-side queries. However I didnt find any…
0
votes
0 answers

How to get Address to geocode latitude and longitude value?

I want to get latitude and longitude of text address by code in drupal. I tried below code but $providers and $addressCollection is getting empty. $address = '1600 Amphitheatre Parkway Mountain View, CA 94043'; $providers =…
0
votes
1 answer

Loop through rows in data frame of latitudes and longitudes and use reverse geo coder to find postcodes

I am trying to loop through a dataframe of latitudes and longitudes to find the postcodes for each row, using geocoder (method: reverse), however, I get the error "TypeError: cannot convert the series to" This is my code import pandas as pd df =…
0
votes
0 answers

how to get lat & long after validating an address in the searchbar... to pass it to the dropdown menu

I'm using leaflet.js and this plugin: https://github.com/perliedman/leaflet-control-geocoder/tree/1.13.0#api and I need a way to get the lat and long from the search address after validation and put them in an input field, or simply to be able to…
Christian
  • 1
  • 1
0
votes
0 answers

Import error : cannot import name 'geocoder' from 'phonenumbers' (unknown location)

ImportError: cannot import name 'geocoder' from 'phonenumbers'(unknown location) How can be that error solved??