append data to a google maps business location - javascript

I was curious to know rather google gives the ability to append data to a particular location on their map as long as it resides in your app. for example...
If I wanted to create a rating app that rates stores or restaurants. and customers wanted to look up stores in their location. They will be able to see my data within my app showing the ratings for that particular businesss.
Thanks...

Most certainly. You would need an independent platform that keeps track of your data i.e. ratings, comments, etc. In addition, you would have to manage the entire map yourself i.e. plotting the markers based on user searches and populating the info boxes when they click on a marker (if you need to). Most likely you would have a database that tracks latitude/longitudes of the restaurants. You could even use google itself to retrieve the restaurant info and overlay your own ratings on top of the map when you plot the points.
For instance here is a custom info box that you may use to display ratings etc.
One interesting feature I would add to the app is using HTML5's geolocation to automatically detect the user's latitude/longitude.

Related

Is there a function in JavaScript that allows me to show relevant Google Map markers between a starting point and a destination?

I have developed a Google Maps application using ASP.NET and JavaScript that allows the user to add a starting address and a destination address in order to view the gas stations that are on that route.
The target of this application is to show the gas stations on that specific route to the user.
The coordinates and addresses of all gas stations are stored in a database.
What I am having difficulty with is producing a solution which allows me to show only the relevant gas station markers and to hide the markers that are not relevant.
Relevant, in this context means, on the specific route selected. So, all gas station markers not on that route, should be hidden.
Below is a visual example.
Map
A is the starting point and B is the destination. Along the blue line, the route, I would like to show the gas stations only between A and B. Any gas station that isn't within A and B should not be shown.
So far, I have checked the below sources but they don't seem to mention something relevant to my problem.
https://forums.asp.net/t/2113575.aspx?Display+nearby+markers+on+google+map+base+on+search+result
http://abctutorial.com/Post/74/how-to-add-and-show-markerslocation-in-google-map-from-database-in-aspnet-mvc-%7C-jquery
http://demo.dotnetawesome.com/asp/how-to-show-markers-location-in-google-map-from-database
Is there some sort of function available that allows me to show just the relevant markers on a route and hide the rest?

map data to make a Web application for displaying location of my customers

I want to create a Web application in which I need a map data of certain area and would like to show the details or location of my customers.
I have seen the Google maps api, but I was searching if I could get something privately for my web application.
Please reply. Thanks.in advance
You can add marker to your map. Markers are designed to be interactive with 'click' events. You can add an event listener to bring up an info window displaying custom information. These marker will only show what you specify. They will not show other marker ( shops,petrol bunks,aims etc)
You can always use the Places API from Google in order to show various places on the Google Maps and also the detailed description about that Places.
Here is the detailed description for the Places API.
Here is a tutorial that may help you in your implementation.

How to make selectable states in Australia (web map)?

The following link provided is something that I am after for a web mapping project.
http://developers.arcgis.com/javascript/samples/fl_dgrid/
The following link contains the utilisation of ESRI base layer map, and what seems to be a layer polygon possibly created in Arcmap, which allows users to select individual states, which when selected displays in a table.
I am trying to achieve the similar user interaction but just for Australia; for example, users will be able to select Western Australia, Northern territory est, which would then show which state the user selected in a table and generate data/information.
So far from my understanding, it seems as though ArcGIS for server could have been used in order to save the feature polygon layer, which is then called as a service from the coding and generated onto the base layer map of ESRI.
I am wondering if anyone can help me in terms of how to get this user interaction working just for a map of Australia. Would I create the polygon layer in arcmap, make that as a service using ArcGIS for server and then call it from coding?
Also, for the actual selection of each state and showing in a table, my understanding is javascript is used?
I guess I am just trying to get a more thorough understanding so I can go on from there, in order to create something similar just for Australia. Any help will be much appreciated.
Thanks in advanced.
There are probably a few different ways to go about getting this to work depending on what data you have available to you. My answer is based off what I see in the example you posted.
Assuming you had the polygons for Australia available to you, you should be able to modify the example and have a working version pretty easily.
Grid
For the grid, it looks like they are using the dgrid plugin which unfortunately I have no experience with so you would need to look up info on that.
Map
If you are wanting to have a polygon shown for each state/territory then you would need to have a service with all the polygon objects available to you. Not sure if this is already available or if you would need to create each polygon somehow.
When the map loads you would want to load all the polygons. When a user clicks on a state you would want to create a query to select the given polygon so that it is highlighted (they are using the OBJECTID field in the example which would be unique to each polygon). When selecting the polygon in the map you would also select the row in the grid(This is also done by the ID aka OBJECTID field from the polygon).

storing google maps marker information in a database

I am creating a website with Google App Engine using Python for the back end and I am trying to give the website some google maps functionality.
I would like to have it so that users can submit a marker onto the map and then that marker's GPS coords will be stored in a database along with some other text info and I am able to do all of this but I am not sure how to put all of these markers with their respective infowindows back out onto a map. I would imagine I could do some sort of for loop but I can't find what the javascript should be to place them all. And it is going to be over 1000 markers and more being added every couple days so just putting them on a map one by one isn't really an option.
See the articles section of the documentation, there are a number of articles about using PHP/mySQL, the concepts of which should be applicable to your system.
This one probably covers what you need:
Using PHP/MySQL with Google Maps
Shows how to use PHP/MySQL and the Google Maps API v3 to create a map that polls data from a database and shows as markers.

How to make a Google mashup, allowing multiple users to pinpoint multiple locations on a map?

I need some inputs on how to show a map (public to all) and allow any user (whose email I should be able to track) to click several points on the map and make appropriate markers (it should just be visible as a point, nothing special). Other users SHOULD see those points as well. I should be able to access data on the backend as to who selected what point.
Any code pointers?
Have a look at this example in the google maps API here to get the basic feel of how to play with markers.
Basically I would bind a mouse click event handler to the gmap, then use this to create a new marker at that position and add it to the map using map.addOverlay(marker).
You will then need some sort of server side script that you can pass the marker information to via an ajax call.

Categories