doublesecretagency / craft-googlemaps

Google Maps plugin for Craft CMS - Maps in minutes. Powered by the Google Maps API.
https://plugins.doublesecretagency.com/google-maps/
Other
10 stars 9 forks source link

Additional GraphQL support #73

Open lindseydiloreto opened 1 year ago

lindseydiloreto commented 1 year ago

As of v4.3, the Google Maps plugin has introduced partial support for GraphQL.

You can now easily read & write Address data as an object (instead of a basic string). While this functionality is a great start, it's clear that additional functionality is possible. Ideally, we will eventually support one or more of these features in GraphQL...

Proximity Searches

Performing a proximity search is a pretty major feature of the plugin. It would be extremely helpful if this functionality existed in GraphQL as well.

Address Geocoding Lookups

We should also be able to perform an address lookup (aka geocoding) on a given address string. While this is a lesser-used feature, it should still be accessible via GraphQL.

Visitor Geolocation (if possible)

I'm not sure if it's possible (or even makes sense) to perform a visitor geolocation via GraphQL. My understanding is that GraphQL is frequently used to communicate between remote and disparate systems.

If the IP address of a given user is not available (or unreliable), there may be no value in exposing visitor geolocation via GraphQL. Or perhaps the IP address should be a required argument, so that the server doesn't try to auto-detect it.


We have no timeline or ETA for completing these features. If any of them are explicitly important to you, please feel free to leave a comment below! 🙂