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

How do send file with wget on HERE batch geocoding

I would like to get latitude and longitude from a batch address list with the help of HERE batch geocoding api. Could you help me send the file "addresses.txt" via POST? I tried the command in linux mint and received "Error 400". :'( wget…
0
votes
1 answer

Rails geocoder gem geocoding using a custom address format

I am using geocoder to get latitude and longitude from address In model I added class Clinic < ApplicationRecord geocoded_by :full_street_address after_validation :geocode def full_street_address [address_line1, city, state,…
Muhammad Faisal Iqbal
  • 1,796
  • 2
  • 20
  • 43
0
votes
2 answers

How to fix the error "undefined method" in my Rails Geocoder?

My code is working in console but not in App ➜ Meet-and-Eat git:(master) ✗ rails c Running via Spring preloader in process 15789 Loading development environment (Rails 5.2.2) 2.5.3 :001 > i = ["10 Palmerston Street", "DERBY"] => ["10 Palmerston…
0
votes
1 answer

Geocoder gem in rails returning : over query limit

I have a model Events with geocoded_by :address and after_validation :geocode, I also have a google api key in my geocoder.rb (initializer). The key is enabled for GeocodingAPi. When I run .geocode in console I have a limit error message. 2.5.3 :024…
Rene Chan
  • 864
  • 1
  • 11
  • 25
0
votes
1 answer

Android: How can i find user's city via gps?

I develop a new application in android studio. I want to find user's city. I tried with Geocoder but some times it returns null. Is there any way that i can find user's city? I already know his latitude and longitude
0
votes
1 answer

The Batch Geocoder API returns only failed status

I experience an issue with the Here Batch Geocoder Api. I have tried with different input data and input parameters with not success so far. I send a request with action run,…
0
votes
1 answer

Throttle limit reached. Retry later

I apologize in advance for the lack of information on this, I'm at a bit of a loss. I have a rails 5 API backend, with Postgres database hosted on heroku. It is serving to an iOS client. The main screen in the client is a map which uses the Google…
jxdx
  • 25
  • 1
  • 5
0
votes
0 answers

Rails Geocoder Gem / How to make markers on gmaps clickable

So I am really trying hard here but cannot make it work myself. I created a gmap on my webapplication. It shows companies from my database on the map with red markers. Now I want to add an eventlistener to every marker so that whenever the user…
Sabrina
  • 309
  • 1
  • 14
0
votes
1 answer

Android configuration for running react native geolocation app

I am trying to fetch lat/long values in my basic react app and I tried the following ways: 1) Used navigator.geolocation.getCurrentPosition() react module, but null value was displayed.Here is the code: class DetailsScreen extends React.Component…
conjuring
  • 121
  • 16
0
votes
1 answer

Saving login location into the database of my rails app

When I sign into the application, the code below gets called. So inside the SessionsController, SignupHistory table gets populated with the .create method. application_controller.rb class ApplicationController < ActionController::Base …
Afolabi Olaoluwa
  • 1,898
  • 3
  • 16
  • 37
0
votes
1 answer

Geocoder doesn't go on Oreo

I have an application that must collect address from a marker on Google Maps API. I tested this code and it works fine on devices that run Android 6.0 : Geocoder geocoder = new Geocoder(this, Locale.getDefault()); try { …
0
votes
2 answers

How to get the original name of the location?

I want to get the original name of the location, without translating it to the users default languages (without setting a Locale.DEFAULT). How can I achieve this? I've tried to set a null in the function, but my app crashed.
Fw1
  • 3
  • 4
0
votes
1 answer

Runtime exception : Unable to instantiate activity ComponentInfo

I tried to get an address from a pointed location on google maps and get this error : Blockquote FATAL EXCEPTION: main Process: elder.msu.testlocationapp, PID: 23559 java.lang.RuntimeException: Unable to…
Sơn Tùng
  • 11
  • 6
0
votes
1 answer

How to override geocoders compass points?

I'm using the rails geocoder gem. I would like to override COMPASS_POINTS = %w[N NE E SE S SW W NW] with german compass points: COMPASS_POINTS = %w[N NO O SO S SW W NW] but I don't know how and where (config/gecoder.rb?) to do this? Any help would…
kernification
  • 511
  • 1
  • 5
  • 15
0
votes
2 answers

android Geocoder throws IOException: Service not Available

after removing firebase analytics, ads and crashlytics (and google-services.json), I get the following error: java.io.IOException: Service not Available Code: Geocoder gcd = new Geocoder(context, Locale.getDefault()); final List
addresses…
Denny Weinberg
  • 2,492
  • 1
  • 21
  • 34