Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 108
  • Last Modified:

How do I place 200 locations on a map through Django

Hi
I have a table of about 200 locations, with zip/postcodes which I would like to place on a (google) map on my responsive website.

I then want users to be able to choose one (eventually the app will filter based on current location) and get directions to that place from their current location on their phone.

What is the best approach to tackle this? I have found the HTML 5 mapping API but am not sure how to approach.

Do I have to load all the facilities into an array each time a user visits the site? Or is there a better way? I am working within a django framework if that helps?

thanks for your help
0
lz7cjc
Asked:
lz7cjc
1 Solution
 
KimputerCommented:
Here's how I did it (in PHP/MySQL though).
First get it to generate 1 marker.
Next, get it to generate a marker from file or database.
Then get it to generate all markers from file or database
Fix marker setup (looks, info, links etc)
The link will be important to get directions (not sure for Apple, but Android it will definitely open nicely in Maps (with Navigation only one click away))
Then get it to show markers based on filters.

Loading all 200 markers won't slow it down, as it's all done by Google (while displayed on your site, the Google Maps API handles all the calls, your time loading 200 markers data is negligible).
0
 
lz7cjcAuthor Commented:
thanks - however I need to understand how to build a page using a mix of python and javascript as set out in the original question. I understand the process at a conceptual level but not how to execute.

Any ideas?
thanks
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now