Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mapbox returning "text" instead of "place_name" key #1661

Open
blindpenguin opened this issue Aug 12, 2024 · 0 comments
Open

Mapbox returning "text" instead of "place_name" key #1661

blindpenguin opened this issue Aug 12, 2024 · 0 comments

Comments

@blindpenguin
Copy link

Expected behavior

When calling something "result.place_name", i expect the value of the "place_name" key.

Actual behavior

The "place_name" method returns "data['text']" instead. Despite there being a "data['place_name']" available.

Steps to reproduce

Do a Geocode for some long address. For example "Bahnhofsstraße 5 Passau".

https://www.rubydoc.info/gems/geocoder/Geocoder%2FResult%2FMapbox:place_name

Environment info

  • Geocoder version: 1.8.3
  • Rails version: 7.1.3
  • Lookup (if applicable): Mapbox
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant