rainlab / location-plugin

Adds location based features, such as Country and State.
Other
21 stars 44 forks source link

feature request: Geolocation twig #98

Closed NielsvandenDries closed 1 year ago

NielsvandenDries commented 1 year ago

Is your feature request related to a problem? Please describe. The Request is not related to a Problem, Just a new feature.

Describe the solution you'd like i like t see a Geolocation feature, where we can user a twig {{ geolocation }} that sets te live GPS latitude longitude.

Describe alternatives you've considered I tried to code it myself, but my knowledge of javascript is not that great, I myself had created a geolocation.js that provides the location, it generates id="geolocation" but i want to use it as a twig {{ geolocation }}

daftspunk commented 1 year ago

Hi @NielsvandenDries

Geocoding is outside the scope for this plugin since it involves storing very large datasets which require lots of maintenance. This type of thing is best handled by a dedicated third party service.

If you want to work with the raw data, here are some good resources

If you want to register your own functions and tags for use in Twig, the documentation has help on this

I hope this helps!