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
2
votes
3 answers

How to call the Mapkit js Geocode method

I'm trying to use the Mapkit js Geocode function, but I'm not sure how to call this function. Here's my code, I'm getting a null from alert(data). https://developer.apple.com/documentation/mapkitjs/mapkit/geocoder/2973884-lookup var geocoder = new…
Julia
  • 1,207
  • 4
  • 29
  • 47
2
votes
0 answers

Google Direction API failed

I have a question concerning the Google API Direction with JavaScript, I'm using it for the first time. I'm developing a carpooling website. I want to create a direction between two places that I got from an input using Google Autocomplete. I've…
user9539310
2
votes
1 answer

OpenSSL::SSL::SSLError: hostname "freegeoip.io" does not match the server certificate in ruby geocoder gem

I am using gem 'geocoder' issue with this gem My Gemfile.lock geocoder (1.4.4) Getting the below error:- Completed 500 Internal Server Error in 485ms (ActiveRecord: 0.0ms) OpenSSL::SSL::SSLError (hostname "freegeoip.io" does not match the…
khalidh
  • 875
  • 2
  • 12
  • 34
1
vote
1 answer

Geocoder.configure returns no method error

I am trying to configure geocoder with geocoder 0.9.11 in rails 7. Every time I call Geocoder.configure in initializers/Geocoder.rb and in console it returns a no method error. I originally have a timeout error using the free lookup like yandex,…
user21087002
1
vote
0 answers

Android is returning Geocoder getFromLocation lambda in 2 different Threads

On Android 13 (API 33) geocoder.getFromLocation() lambda is returning data in 2 different threads, first in one that is not the Main one, and the next ones in the Main thread (I get the feeling that it uses some kind of cache). This caused me a big…
ilizma
  • 11
  • 3
1
vote
0 answers

Problem in getting location in android studio

I tried to get a latitude and longitude and the address of the current location. When I tried in the emulator it worked..but when I tried to use my smartphone it was not working. I have added the location permissions in the manifest. Please help me…
1
vote
0 answers

Does Ruby Geocoder work with PO Box addresses?

I have been attempting to use the Ruby Geocoder gem on a static database (breweries, in this case) from a csv file. I have seeded the database, and have my latitude and longitude columns. In the rails console, I have inputted this: results =…
markrubin
  • 11
  • 1
1
vote
1 answer

Unknown issue prevents geocode_reverse from working

I recently update RStudio to the version RStudio 2022.07.1, working on Windows 10. When I tried different geocode reverse functions(Which is input coordinate, output is the address), they all return no found. Example…
1
vote
1 answer

How to convert LatLng to address Flutter (both iOS and Android version)

I am creating an app with Flutter that uses geocoding plugin in order to convert LatLng position to address. Here my code: import 'package:geocoding/geocoding.dart'; class HomePage extends StatefulWidget { const HomePage({Key? key}) : super(key:…
Edoardo
  • 657
  • 7
  • 24
1
vote
0 answers

want get curent Adresse Location

I am developing an application that allows to retrieve the current location address using Geocoder. this is the step to get location adresse that i follow : check if GPS is enable on device if it is request Location permissionspermissions else if…
1
vote
1 answer

How to pass the arrays to another vue component and apply to a variable

I want to pass the arrays in another component and assigned it to a variable MainList.vue //vue js code this.addresses.forEach(a => { Vue.$geocoder.setDefaultMode('address'); // this…
boldsinas101
  • 300
  • 2
  • 5
  • 22
1
vote
0 answers

Geocoder inside of loop in Javascript

I am playing around with the google maps API and was trying to drop in an array of zipcodes and have lines drawn on the map between each location. The problem I have is that, because of asynchronous behavior, the lines do not get drawn in the…
1
vote
0 answers

if I set current location as default, geocoder does not search other locations

I have created modal that loads with default lat-long so when I open the modal it automatically loads that location. I have added a GPS button that can give me the user's current location. Both are in different functions, but now I want current…
1
vote
0 answers

Unhandled Rejection (TypeError): net.isIPv4 is not a function ReactJS

I am building an app using node-geocoder. The file works as intended when I have it in its own file, using node.js. But i would like to not have to use a server. Here is my code for the node.js file where it works. const NodeGeocoder =…
Stark
  • 11
  • 1
1
vote
1 answer

How to stub call in ruby Geocoder when calling specific service

The Geocoder gem allows for stubbing while testing: https://github.com/alexreisner/geocoder#testing Testing When writing tests for an app that uses Geocoder it may be useful to avoid network calls and have Geocoder return consistent, configurable…
Nick
  • 423
  • 7
  • 17
1
2
3
12 13