Make use the Google Map API to plot multiple points based on a data file with multiple addresses and other information.
Rough algorithm:
i) Read hosted data file which will be on same webserver
ii) Translate address information to longitude and latitude, geocoding
iii) Plot points on map using Google Map API
The address data file will be changing everyday so the script needs to generate the new map each time there is a new address data file.
I would like it done in JavaScript.
## Deliverables
I'm looking to have a webpage that translates multiple address points to pins on a Google map. This is a subset of the functionality on the website, [login to view URL] I need to recreate this functionality because I need to be in control of the map generation. If anything goes wrong I want to be able to fix or update it. I would like to make use of the Google Map API and have the coding done in JavaScript. I have my own map API key. Here is a sample of the functionality:
[login to view URL]
Here's a high level algorithm:
i) Parse and read address data file
Reference an a text file that will have address and other information. The addresses will be in North America. Here is a sample of what I will provide.
Postal Code | Information for pop-up window | pin color and number | pin category
Here's an example to work from:
M5R 2X3|1 - 3 pallet|RED NUMBER 1|drops
L3P 3J3|2 - 1 pallet|RED NUMBER 2|drops
L4Y 2Z9|3 - 6 pallet|RED NUMBER 3|drops
M1B 3C3|4 - 4 pallet|RED NUMBER 4|drops
M5B 2G9|5 - 2 pallet|BLUE NUMBER 5|pickup
M4L 1G5|6 - 1 pallet|BLUE NUMBER 6|pickup
M6J 1H6|7 - 1 pallet|BLUE NUMBER 7|pickup
This text file will be produced by another software program and uploaded to my website. The address file will be changing everyday so the webpage needs to refresh the map according to the new location data file.
ii) Geocode addresses
The address data will need to be translated to latitude and longitude values. In other words, geocoding needs to be done.
iii) Plot pin points
Plot numbered pins onto the Google map using the Google Map API. Include a pin legend. Also each pin should be clickable to make a popup displaying the information outlined in the field "Information for pop-up window".
The last data field I have is a grouping of pin points. I would like to have each category have its own color. At minium I need 2 colors. If this is hard, I can make do with just one color.
An optionals extra is to also make use of the yahoo geocoder in case the Google geocoder fails.