Solved

How do I place 200 locations on a map through Django

Posted on 2015-01-21
2
86 Views
Last Modified: 2015-03-23
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
Comment
Question by:lz7cjc
2 Comments
 
LVL 35

Accepted Solution

by:
Kimputer earned 500 total points
ID: 40564050
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
 

Author Comment

by:lz7cjc
ID: 40572798
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

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
CSS for Mobile Device/iPad 13 131
contractual requirements for app hosting 3 110
push Book Today button to right 10 39
Mobile testing 2 75
Foolproof security solutions has become one of the key necessities of every e-commerce or Internet banking website. If you too own an online shopping site then its vital for you to equip your web portal with customer security features that can allow…
It’s a strangely common occurrence that when you send someone their login details for a system, they can’t get in. This article will help you understand why it happens, and what you can do about it.
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
This video teaches users how to migrate an existing Wordpress website to a new domain.

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question