Routify Documentation
Loading...
Searching...
No Matches
ch.routify.controllers.QueryController Class Reference

Public Member Functions

ResponseEntity< JSONArray > getStatus (@RequestParam("lat") String lat, @RequestParam("lon") String lon)
 
ResponseEntity< JSONObject > getNode (@RequestParam("id") Long id)
 

Detailed Description

Controller responsible for handling API endpoints related to querying geographical data. It provides functionalities for finding nearby entities based on latitude and longitude coordinates. Utilizes Routify for geographic calculations and data retrieval.

Author
Alexander Eggerth
Version
1.0

Member Function Documentation

◆ getNode()

ResponseEntity< JSONObject > ch.routify.controllers.QueryController.getNode ( @RequestParam("id") Long id)
inline

◆ getStatus()

ResponseEntity< JSONArray > ch.routify.controllers.QueryController.getStatus ( @RequestParam("lat") String lat,
@RequestParam("lon") String lon )
inline

Retrieves a list of edges in range of 30 meters based on the provided latitude and longitude.

Parameters
latThe latitude of the point to find nearby edges for, as a String.
lonThe longitude of the point to find nearby edges for, as a String.
Returns
A ResponseEntity containing a JSONArray with a list of CustomEdge objects.

The documentation for this class was generated from the following file: