A simple web application to display on a map, data based on coordinates. Icons/Images that represent the coordinate data can be clicked. Once clicked a dialog with options to purchase items will be presented to the user. ? Users will be able to click these options indicating the item they have purchased.
Google Maps Business Process:
Display icons on map:
Icons will be displayed on a google map. ? These icons will be placed on the map based on an array of coordinates retrieved from the "Get Coordinates To Display Data Method" below. ?
Icons on the map can be clicked to display 3 default options:
Purchase Item 1: $1
Purchase Item 2: $3
Purchase Item 3: $5
Purchase Item option clicked:
when a purchase item option above is clicked it will send the item clicked and also the coordinates for the icon associated with it to the "process user input" method.
Service Methods (implemented in php or java):
Name: Get Coordinates To Display Data
input paramters: none
implementation logic: create an array of 10 random coordinate objects with latitudes and longitudes?
Return value: an array of location objects. location objects have two string attributes: longitude and latitude.
Name: Process User Input
input parameters: longitude and latitude of icon clicked on map, item selected in dialogue option from icon on map that was clicked
implementation logic: a simple print statement of the icon coordinate value and purchase option item select
return value: none