Solved

How do I place 200 locations on a map through Django

Posted on 2015-01-21
2
92 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 36

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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Thoughout my experience working on eCommerce web applications I have seen applications succumbing to increased user demand and throughput. With increased loads the response times started to spike, which leads to user frustration and lost sales. I ha…
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 if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …
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…

635 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