alexreisner / geocoder

Complete Ruby geocoding solution.
http://www.rubygeocoder.com
MIT License
6.35k stars 1.19k forks source link

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

Open blindpenguin opened 3 months ago

blindpenguin commented 3 months ago

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