Oracle Magazine, July/August 2017
Cloud Developer MOBILE ORACLE MAGAZINE JULY AUGUST 2017 64 sdk location places query spatialQuery then function success res send success statusCode success result function error res send 500 error error As shown in the Node js code for the specific GET mobile custom spatial customers endpoint router function the three query parameters are extracted from the request and then wrapped in a JSON object and fed into the SDK location places query method which runs a spatial query on places within the radius of the latitude and longitude 13 Still on the test page enter a latitude of 3766 longitude of 121 note the negative and radius of 70000 meters enter the number only not the units As you can see two places are returned within that radius Locate the latitude and longitude of each place within the JSON payload provided in the customers json file because this information will be used in the Oracle Mobile Application Accelerator app map screen you will build in a moment BUILD YOUR ORACLE MOBILE APPLICATION ACCELERATOR APP With the places API named spatial in place you can now build your Oracle Mobile Application Accelerator app with a map The goal will be to display on a map all the location based services places within a radius of your current location
You must have JavaScript enabled to view digital editions.