How to start a consistently updated Google Maps v3 - google-maps-api-3

I have the longitude and latitude of vehicles and other things that are going to be constantly updating and would like to use Google Maps API v3 to keep track of them.
I don't believe my current method of importing these locations (importing into a Fusion Table which then geocodes it) is efficient or allow for Google Maps to grab data.
I have basic experience in php and Javascript, so my idea is to use phpMyAdmin to keep the database and have Google Maps pull data from there, but I have no idea where to start or how to have phpMyAdmin with a consistent dataflow. Could someone give me a starting point or perhaps offer a better solution?
This example shows a end result which is a still image. I'm not sure if this will get the results I want.
https://developers.google.com/maps/articles/phpsqlajax_v3

Related

How to get place information using Google Knowledge Graph using Latitude and Longitude ?

I want business description using google API or wikidata API.
As shown in above image I want to access description (which is highlighted in red circle.) and store it into application database.
What I tried till now, I used google place API to get the place information, using that I am able to get information like review,rating,opening hours. But I am not able to get that information which I have mention in above image. But I do not know how to get that information using Wikidata api or Google Knowledge Graph api.
Can any one suggest me that how can I use that API to get that information.
Any help would be highly appreciated !
Thanks,
I'd also be keen to know if this is possible. For example, with a bounding box. 4 coordinates, might it be possible for Google Knowledge or another API to give me a summing up of the place.
For example: bbox=4.721375,52.290843,5.070190,52.399905
Might return information and history on the city of Amsterdam. Like when you type into Google Search "Amsterdam".
Just a thought. I have previously accomplished this with a very manual combination of Overpass API (related to OSM) and Freebase.
I just found this: Find a place description in Freebase using latitude and longitude?
So, it can be done. And it is already documented.

Why is "natural_feature" excluded from Google Maps Geocoding and Places API searches?

Trying to mimic the 'what's here' feature of Google Maps in my own website but it seems that items of type 'natural_feature' are excluded from Google Maps 3 API geocoding and places searches, both nearby and radar, and also on text searches unless the EXACT name of the place is provided. This must have been an informed choice by Google to do this - anyone know the rationale, and better, offer a workaround? Seems crazy that I can't get the names of woods, nature reserves etc. any more...
Found out how to do it! If you get a geocoding API key from Google you can get all the data for natural features included in the JSON/XML response from a server request like the following (I was trying to get the data for "Gamsey Wood"):
https://maps.googleapis.com/maps/api/geocode/json?latlng=52.4180698,-0.2029999&result_type=natural_feature&key=YOUR_GOOGLE_GEO_KEY
Happy days!

Nearest Shops Feature by using Google Places API

I am trying to develop the feature in my website to search the nearest Stores for the given location/address.
For example.
http://www.tesco.com/store-locator/uk/
After I have done some research, I think, I need to use the Google Places API to locate the nearest places. I have tested with some examples and it's working.
However, I don't know how to upload my chain of stores onto the Google Map and how to find the nearest stores (only mine, not other stores). I couldn't find a feature to upload my places onto the Google Places by using their API.
Could you please guide me how I could achieve it? Thanks.
I am attempting a similar feature.
First, you will need to upload your business locations to google. I think this is an important step it getting your places to show up on google maps. You can do that here: https://www.google.com/local/manage/#/list
After uploading you can download all of the locations in csv format. Once you have all of your locations in csv format you can parse the data and create a list of addresses to search.
Once you have your addresses you can use google's distance matrix api https://developers.google.com/maps/documentation/distancematrix/
you can search up to 100 places and get back a distance result for each location. Finally you can parse the distance results to find the closest location.
A few drawbacks here. There is a URL length limit of 2000 characters. If you are searching a lot of places this will fill up fast. Also, the free version of the API has a limit of 100 places per search and a maximum of 100 places per 10 seconds so if you have a lot of places or a lot of users this will be an issue.

Automate geocode while updating fusion table - google experts

I want to automate the google map geocoding whenever a fusion table is updated. Or any other webservice to call geocode programatically.
For Ref : please check this image
http://imageshack.us/photo/my-images/829/7232012113102pm.png/
this is what i exactly need programatically.
Any suggestions?
This is not yet possible. There is a pending feature request, feel free to star it, which shows that you also would like this feature.
Until then you could geocode your data prior to inserting it to Google Fusion Tables. There are several services you could use (Google Geocoding API, Yahoo PlaceFinder, MapQuest Geocoding API). Once you got the lat/lng data belonging to your data, you could simply insert it in your Fusion Table.

Mapping markers on Google Maps

I am looking to map about 800 markers on a Google map. I have a csv file with addresses, including latitude and longitude coordinates. I would like to be able to somehow upload this file to Google Maps resulting in a map displaying all of my markers. This process will be automated, where a windows service (or via Sql Server Integration Services) will upload the address data to some url, effectively updating the markers on a map, which is embeded on an Asp.Net page on my site.
Does anyone know of a simple way this can be accomplished? Are there any tools out there that can already do this? I've looked at batchgeo.com and there file upload feature, but I don't think their tool can be automated.
Why not just to use google maps api v3 to display the markers? With 800 markers you probably would like to use marker clustering e.g. using markerclusterer
800 markers is a lot for one map, especially without marker clustering. Do you think maybe something like Google Fusion Tables would work? It's pretty easy, doesn't require much in terms of coding, and I'm fairly certain you can update records via URLs. You can upload your initial CSV file to it, too, and then display the points on a Google Map.

Resources