google maps, google places and save marker to a database - php

First of all I would like to tell you that I am not sure if I use the terms correctly so please excuse me for any misunderstandings. I will try to clear everything.
What I want to do is to let the users on my website to select their favorite bar or restaurant and add it to their profile.
It should be more or less like maps.google.com but in a smaller dimensions let's say 400x400. The users will be able to search for a place and once they find it they will be able to save it to their profile.
I am confused though because Google offers the Google Maps and the Google Places. I do not see any tutorials around regarding Google Places..
The question is.. Can I do my small project by using google maps or I really need to use google places?
Is there any tutorial/link which shows how to store on my database the current map location?
Thanks in advance!

Ok after some more searching I found my answer which was pretty simple.
It looks like I can get the lat and lng from place.geometry.location .
The rest about storing it to the database is easy!
Thanks anyone who at least read my post!
Cheers!

Related

Syncing a YouTube Video for viewers in PHP

I'm working on something that my friends and I can use to sync up YouTune videos based on a URL. I'd like to do this myself instead of using another site just because it's a lot more fun!
So I've been looking around and I've found nothing that can help me with the issue I'm having (Syncing the videos), and help?
Thanks in advance
good starting point is start here using javascript you need to store the position of the current playing vedio ajax would be good choice for string the position and return it back from back end storage (db)

Wordpress: How to integrate Find Nearest Shop function

Firstly thank you for taking the time to look at my question.
I have a project where I have integrate a find nearest location function on a Wordpress website. The functionality should work as:
A user inserts their postcode into the search bar, and the results shown are shops which are nearest to their postcode.
Has anyone done anything like this before and if so do you have any recommendations on plugins or tutorials which could possibly help me.
Thanks
The functionality you are looking is basically radius search for given zip code. I will suggest you to go through with this nice article to get start and complete your task.
https://www.dougv.com/2009/03/27/getting-all-zip-codes-in-a-given-radius-from-a-known-point-zip-code-via-php-and-mysql/
After much research I found a suitable plugin for the job:
https://wordpress.org/plugins/gwebpro-store-locator/
There are many plugins out there with the same functionality, but I chose this one.
I edited the plugin heavily to get it to work how I want it to work.

How do I calculate the driving distance between 2 places along with a map in php

I am looking for driving distance between two address/postcodes with displaying both on Google Map in php
I have search a lot of Scripts but most of them calculation distance only. I also want the both address along Google map also.
like this http://www.1stwebdesigner.com/wp-content/uploads/2010/06/distance-finder/source-distance-finder-google-maps.php
But this link calculate the "straight line distance" between two address and also show them on map
Please help me, i don't want straight line. I want driving calculation alone with map.(The script also show address on Google map)
You can do this with the API, I suggest you 'google' the google API for specifics, the documentation for google maps v3+ is awesome, you should have no problem if you're not reaching way outside your knowledge base.
and +1 #HeitorChang for that comment, I didn't see it.

Getting information from Gmaps like grassland, street, water etc

I'm thinking about a project, where I need such informations as described in the title. Does the Google Maps API provide something like this, or does anyone know how to get these informations?
Project will be done in PHP, HTML and Javascript.
AFAIK Google doesn't provide this information via the API. The only thing I can think of is getting the image, and then detecting the colour. A map of colour hex values against point type might give you what you need.
However, this may well break the Terms and Conditions, depending on what you're doing.

Google Map Color Coding Countries based on marker value

I need to color code counties on my google maps based on the markers on these locations. Anyone with some idea as to how this can be done? I am using google earth
I can create markers dynamically and show my data. Now I need to find a way to style google maps.
As of right now Google does not support county shading it seems. With map charts here, it lets you shade countries and states.
http://code.google.com/apis/chart/image/docs/gallery/new_map_charts.html
The closest I've got to seeing county shading is an example here:
http://maps.google.com/maps?f=q&hl=en&q=http://lazylightning.org/mncounties-sorted.kmz&ie=UTF8&z=6&om=1
You can read a little bit about how it was made here:
http://www.lazylightning.org/minnesota-county-kmz-overlay-for-google-maps
Other links that you might find useful:
http://nationalatlas.gov/atlasftp.html?openChapters=chpbound#chpbound
http://freegeographytools.com/2007/converting-e00-vector-data-to-shapefiles-a-free-and-fairly-painless-approach
http://www.zonums.com/shp2kml.html
I'm not sure how extensively you can customize Google Earth, but if you're not dead-set on it, try one of these: Google Visualizations
Depending on which one you choose (I believe there are three different types of maps available,) there are loads of customization possibilities. Also, none of these require a proprietary plugin like Google Earth does (just Javascript and Flash. Okay, Flash is a proprietary plugin, but I'm sure it's far more common than the Google Earth plugin.)

Categories