Basically all I want to do for now is just allow someone to enter an address and have it save the data in my database and display it on a Google map. Then when other people come to it, they can view the "pins" that other people have placed. Do I do all of the interaction with Google Maps using JavaScript? PHP?
I've done some searching and it isn't all that clear to me. Just looking for guidance on how to get started so I don't end up going back and changing things later on.
Google Maps is a client-side technology so you'll be using JavaScript. See this guide for getting started.
There are alot of tutorials on the web about the subject.
It is actually quite simple once you understand the API.
To get the pin's etc you can store them with php in MySQL and then to show the map just translate into values the API can understand.
Here is a good tutorial: https://developers.google.com/maps/articles/phpsqlajax
Related
Im working on a project..I have to add a google map of my location.Im new to this so any help will be appreciated . I know there are many tutorial but i cant find the best one.Thanks in advance :)
you might want to start here. This a tutorial from Google.
Google Maps API is very powerful but you need to have detailed information about Javascript (Jquery), PHP, mySql etc. Also you have to be familiar with Google Map services.
If you do not have enough time for that, you can have a look this PHP script. It is FREE and you can easily embed google maps on your PHP website. Also, it's possible to manage your maps without coding.
I would like to read my Google Plus Feed with an php site and list all entrys in an array.... Now I found the explanation site of Google
https://developers.google.com/+/api/latest/comments/list
But I dont understand what I have to do?!? Can anybody give me a hint or an example, how to read my own newfeed from google + with an php coded site?
thank you in advance
regards Dennis
Well, I think it is better you to use the google-api-php-client which has methods to easily access content on Google Plus from PHP.
You may also want to check out the Google+ PHP Starter Project, which provides some configure and run code. One of the features demonstrated by this starter project is a list of your public activities.
Where can I find the tutorial or example to use Google Maps with PHP, SQL Server and JavaScript?
Example:
If I want to apply Google Maps into my website, which when the user key in the suburb name, then it will return the map of the suburb and show a mark for each of the locations of shops belonging to my company.
I used the tutorial "jQuery and Google Maps Tutorial: #1 Basics" to get familiar. It uses MySQL, but you could probably substitute it with SQL Server.
Here would be a good location to start:
Google Maps Examples
Just look into the source code of the examples, you're interested in. You can get far with just copy and paste.
EDIT: I just noticed, that I refered to the API v2, which is deprecated by now. You might better use the Tutorial for v3.
You can use the PHP class Easy Google Map.
I'm writing a ticket-shop-system atm for reserving tickets for various concerts.
What I have is a php-backend and a webpage that shows a .swf with some actionsscript-3 code in it, to draw in flash some sort of map and make available seats clickable for the end-user.
The problem with this solution is, that there are quite large halls and just making the seats smaller isn't the right solution.
My next idea was to make a google-maps-like interface, so that users can pan and zoom and things like that. But I can't find any information about doing something like this, whether it'll be flash or javascript or something else...
I would appreciate any information regarding this topic!
Thanks in advance!
Google maps allows you to use their system and provide your own custom map too, so you can overlay your seating chart and nothing else. You can read the documentation here.
There's a sample pan-zoom flex application you might find helpful:
Source Code for Pan-Zoom Flex Map.
Hope that's helpful.
Take a look at Seadragon (http://seadragon.com). Might be an interesting way to expose the functionality.
Trying to learning some more PHP. Here is what I'm after.
Essentially, I would like to search a website and return data to my own website.
Add a few keywords to a form.
Use those keywords to query a website such as monster.com for results that match the keywords entered.
Grab that data and return it to my own website.
How hard is something like this? I acknowledge the above outline is oversimplified but any tips you can offer are much appreciated.
If you're querying a site that has an API designated for this kind of functionality, you're on easy street. Just call the API's appropriate search function and you're all set.
If the site you're querying doesn't have an API, you still might be able to search the site with an HTTP GET using the right parameters. Then you just need to scrape through the file for the search results with your script and a few regex functions.
Here's a little tutorial on screen scraping with PHP. Hopefully that will be of some help to you. The trouble with this is that in general if the site hasn't made it easy to access their data, they might not want you to do this.
Enter Yahoo Query Language (yql). It's a service that let's you use things like xpath to get data from websites and put them into an easy to use xml or json format. The language is similarly structured to sql (hence the name).
I've used it for other sites to build rss feeds for sites that didn't have it and it was pretty easy to learn.
http://developer.yahoo.com/yql/