Hi Rodney,
This has been implemented and it will be in next version of GeoDirectory v2.0.0.70.
Examples:
1) Using Latitude & Longitude
– latitude=xxx.xxxxxx&longitude=xxx.xxxxxx
– Example:
/wp-json/geodir/v2/places/?latitude=21.8380&longitude=73.7190&distance=10&orderby=distance&order=asc
2) Using IP Address
– ip=xxx.xxx.xxx.xxx
– Example:
/wp-json/geodir/v2/places/?ip=103.216.82.146&distance=10&orderby=distance&order=asc
3) Using Near Me (auto-detects IP of the user and find nearest posts)
– near=me
– Example:
/wp-json/geodir/v2/places/?near=me&distance=10&orderby=distance&order=asc
4) Using Address
– near=xxxxxx
– Example:
/wp-json/geodir/v2/places/?near=Surat&distance=10&orderby=distance&order=asc
Regards,
Kiran