Oracle Magazine, July/August 2017
Cloud Developer MOBILE To satisfy the original requirements for this app to show places within a radius of the users current location you would select the Device Service option and then copy in the devices Current Latitude and Current Longitude fields However as explained earlier for demo purposes youll hardcode these values 28 To hardcode the values select the Fixed Value box on the left and drag and drop the Fixed Value field into all three fields latitude longitude and radius ORACLE MAGAZINE JULY AUGUST 2017 67 Figure 1 Two customers appear on your app map Then enter 3766 for latitude 121 note the negative for longitude and 70000 for radius 29 Click Finish On returning to the Oracle Mobile Application Accelerator designer you may be a little disappointed to discover the single marker against a boring background again By default like the Live Preview option the Oracle Mobile Application Accelerator designer shows only test data derived from the API To see live data you must run the application 30 Click the Test button the gray right arrow at the top right when prompted enter Mary the mobile users username and password and click Sign In 31 The resulting app displays the map and given the virtual location of your app user you can see the two places within the 70 kilometer radius of your current latitude longitude 3766 121 as shown in Figure 1 CONCLUSION What excites me most about the mapping and spatial functionality provided through Oracle Mobile Application Accelerator and Oracle Mobile Cloud Service is that Ive visited absolutely loads of customers who have address and location data in their enterprise databases but have never actually been
You must have JavaScript enabled to view digital editions.