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

ArgumentError (Unsupported argument type: 0 (Integer)):

My search form looks for an object in the database based on the address field. Everything works fine if i search only for the city name, for example Milan, but the search breaks if a select the complete google maps address suggested via maps…
user13825492
0
votes
1 answer

How to use geocode function more than once in the same post request (npm: node-geocoder)?

I have been trying to create a function returnCoords(par1) on which the user can enter a text input, and convert it to coordinates using the node-geocoder npm. Although the function looks to work okay, when returning the function it gives undefined…
Loizos Vasileiou
  • 674
  • 10
  • 37
0
votes
1 answer

Invalid Credentials for Here API in angular 8

I have been trying to get the location from zip code, but I am getting this error in the console Uncaught SyntaxError: Unexpected token '<' geocode.component.ts:33 Error: [timeout]…
0
votes
0 answers

How to implement geocoder with @react-native-mapbox-gl/maps library in react native

i'm trying to implement Geocoder with the @react-native-mapbox-gl/maps library as it's the sugestion in the official Mapbox's website for react native apps. My map is fully operational, but when comes to Geocoder I couldn't find a proper library.…
0
votes
1 answer

Angular 9 MapboxGeocoder add marker doesn't work

I create a project with angular 9 and mapbox gl. I have a problem with Geocoder, all works fine when I search place, but I try to set a point after Geocoder result like this: https://docs.mapbox.com/mapbox-gl-js/example/point-from-geocoder-result/ I…
Pollen
  • 13
  • 5
0
votes
1 answer

Getting InvalidCredential and Permission error while using geocoder and here api

I'm passing state name and want to get the lat and long of the state. But i'm unable to get the response while hitting. Using the app_id and app_code getting from here developers console. Error i'm getting H.service.jsonp.handleResponse(2)(invalid…
sree
  • 1
  • 1
0
votes
1 answer

How Can I work with Leaflet Control Geocode?

I plan to add a leaflet control geocoder or a search box to my app. Although I wrote the needed code it doesn't display any geocoder and I don't know what is wrong. I have provided a part of my index.html file including related code.
0
votes
1 answer

HERE Geocoder API free-form text matching

Is it true that using full country name in free-form text address will gain better "Relevance" scoring as compared to using CountryISO3 code? In one of the example that I observed. Case with country iso3 : Flat 1 Church Road, Liverpool, L37 8B,GBR …
0
votes
2 answers

undefined error converting an address into coordinates with Mapbox geocoder

I'm working with Mapbox geocoder services for the first time, and I was trying to get the coordinates (latitude and longitude) as result of address search and I did it, but when I try to insert this result into two inputs, the input search change…
Carmen B.
  • 349
  • 7
  • 22
0
votes
1 answer

OpenCage Geocoder get destination and origin Line markers

Is it possible to get a route like between origin and destination using the opencage API like the way GoogleMaps provides a route using origin and destination
0
votes
1 answer

InvalidValueError: unknown property adress

I'm getting this error when trying to set a new map center using the Geocoder Api from Google Maps. geocoder.geocode({adress:this.startPosition}, (results2,status)=>{ if(status=="OK"){ …
user12792083
  • 23
  • 2
  • 6
0
votes
1 answer

How can I get the longitude and lattitude of a specific address not the current address

I know how to get the current location longitude and latitude and save it in Geofire, but how can I get the longitude and latitude of a specific address and save that instead. I test the code below but nothing is being saved. What am I doing…
0
votes
1 answer

How to find natural places in openstreetmap with geocoder gem for ruby

Im using the geocoder gem for ruby. I want to find natural places in openstreetmap in a given area (viewbox). Currently it looks like this: Geocoder.search(q, params: {viewbox: viewbox, bounded: 1, limit: 20}) Where q is the search term. If I use q…
kernification
  • 511
  • 1
  • 5
  • 15
0
votes
1 answer

Rails Geocoder Returning Wrong Coordinates

[1] def get_coords(address) coords = Geocoder.search(address) self.lat = coords[0].data["lat"].to_f self.lng = coords[0].data["lon"].to_f end On the front-end a user enters an address for a new TravelCenter,…
0
votes
1 answer

My rails app does not display the map using gem geocoder

The gem by itself is working pretty well because when I register a new location I just put the address and it brings me the latitude and longitude. However, when I try to display this location in a map it does not show anything Help please…
user12192123