flutter-mapbox-gl / maps

A Mapbox GL flutter package for creating custom maps
Other
1.04k stars 503 forks source link

How do I plot a GeoJson Line String from MapBox Directions API #1305

Closed cybertheory closed 1 year ago

cybertheory commented 1 year ago

Trying to use mapbox_gl and directly querying the directions API, it returns a Geometry field under the Route object which is a GeoJSON LineString. How would I plot this?

cybertheory commented 1 year ago

Solved: just set geometry parameter to geostring in request and use the coordinates field, or geoJson.