Menu
SuiteCRM Pull Request Party hosted by SalesAgility
Welcome, Guest
Username: Password: Remember me

TOPIC: How to retrieve accounts list by radial distance with API?

How to retrieve accounts list by radial distance with API? 3 days 14 hours ago #87074

  • H2App
  • H2App's Avatar
  • Offline
  • New Member
  • Posts: 1
  • Karma: 0
How to retrieve accounts list by radial distance with API?

Hi everyone, I'm looking for a way to retrive the account list sorted and filtered by gps coordinates. For example I want to query the GetModule API with my current latitude and longitude coordinates and get the Accounts with coordinates in my neighborhood (where the neighborhood could be 1 or 100 miles).

The standard API seems doesn't support a query like that, what can I do to join my goal?

Thanks in advance.
The administrator has disabled public write access.

How to retrieve accounts list by radial distance with API? 3 days 14 hours ago #87075

  • diligent
  • diligent's Avatar
  • Offline
  • Moderator
  • Posts: 59
  • Thank you received: 17
  • Karma: 2
Hi,
you can extend the api with own methods. Since the longitude/latidude is stored in the tables, you can do the calculations yourself.

www.movable-type.co.uk/scripts/latlong-db.html
coderwall.com/p/otkscg/geographic-search...n-a-certain-distance
www.geodatasource.com/developers/php
Last Edit: 3 days 14 hours ago by diligent.
The administrator has disabled public write access.
The following user(s) said Thank You: H2App
Time to create page: 0.045 seconds
Powered by Kunena Forum