I want to add the redo search feature of google maps on this SITE. Any idea how to populate result markers and listings the way these people have done it?
There is an example here (check the source), but seems that V3 uses the Places library instead of focus on the GLocalSearch, see an example here (check the source). It is really easy to implement, but the database seems sparse, and I could find few results compared with the "query loc: Place name".
Using GLocalSearch with V3 gave me even less results than using Places library, what is even more frustrating. Anyway, you can give a try.
Related
I am new to android and php and working on old project.
Everything worked smoothly till yesterday. I am getting all videos from you tube api:
https://gdata.youtube.com/feeds/api/videos?q=&start-index=1&max-results=10&v=2&alt=json
But from today, i just get only one video from this link and that is:
https://support.google.com/youtube/answer/6098135?p=yt_devicesupport&hl=en&rd=1
I have read that v2 become depreciated so i need to move to v3 version ?
I need help on how to get all videos as before.
There isn't really an easy answer for this. At least, we can't really just give you a new address to plop in the place of the old one. API v3 is structured differently and has different requirements than v2. Some of those changes at least theoretically bring some performance advantages, but when requesting things from this new API, you need to be more specific about what you're looking for. Also, since some of the data has moved around within the JSON results, you may need to change where your code looks for given information.
As it is, I don't really know what information you need, or for that matter, what collection of videos you're looking for. In this version of the API, these details actually matter. In v3, you have to provide a comma-separated list of the information you're looking for, and then at least one more "filter" parameter as well (filters, for your cases are probably either "chart" which is something like the "chart of the most popular", or "id" which is a comma-separated list of video IDs.)
While it's probably not the answer you were looking for, you probably need to stroll through the documentation. I especially suggest the Try It section, where you can plug in your parameters and build the query.
You'll need an API key to use the new API, and you can get that key from the Google Developers console. Create a new project, and add the YouTube API to it.
I need mapping for an AJAX (Javascript/PHP/MySQL) project. All the providers I researched used a tile cost model or were beyond our budget.
I'm not looking for anything fancy, just something that allows:
Commercial Use (for us and users of our service who use the maps)
Panning
Zooming
Street Layers
Efficiently plotting large numbers (eg: >= 1,000) of markers by GIS or zip code.
Adding annotations to markers (directly or via legend).
I may even be able to do without 1 or 2 if it comes down to it.
The budget for this is tight: $2,500 for an annual license or and $5,000 to buy something outright. However, this figure may be adjusted if there's something that isn't too far out of the ballpark.
Does anyone know of anything that fits the bill (bad pun unintended)?
Also, an additional wrinkle is that the underlying tile server should be included in the price. Some excellent responses were provided so far (and I'm looking into them), but some of them are libraries only and the tile server may be a hidden cost. It's also not always clear just what (default) tile server is used with what library.
The first thing that I would try is MapQuest APIs with OpenStreetMap option:
It is free of charge for commercial and non-commercial use
It supports panning and zooming
It has geocoding, letting you map by ZIP code
It supports POI markers and InfoWindows, letting you supply annotations to markers on the map.
The biggest limitation that comes with using OpenStreetMap is the lack of routing services, but it is not on your "shopping list" anyway.
Some other solutions that might be worth investigating.
OpenLayers (http://openlayers.org/) appears to support what you need.
2-clause BSD License (also known as the FreeBSD)
zoom and panning
plotting
more examples here
Leaflet (http://leafletjs.com/) looks promising. Looks like it relies on the OpenStreetMap option.
Zoom buttons, Panning animation, GeoJSON layers,
Attribution-ShareAlike 2.0 Generic license
Also, here's a comparison of the two above solutions.
Hopefully, these help in your search for the optimal solution.
EDIT 0
MapBox (http://mapbox.com) looks like a pretty cool pay solution, that looks to be within your budget. It appears to support everything you need and more.
EDIT 1
I performed some more searching and found the following.
Modest Maps - http://modestmaps.com/
Custom Build - Build it yourself? SO user provides basic explanation.
My personal opinion would be to use the effective "standard" OSS
libraries that form this type of stack.
OSGEO has a bunch of resources for exactly this.
PostGIS (database)
Apache (webserver)
MapServer (WMS compliant GIS server)
OpenStreetMap (the maps you'll need)
OpenScales or OpenLayers
(Flex or JS API) Total cost: a few hours of setup.
Polymaps - http://polymaps.org/
CloudMade - http://cloudmade.com/; pricing; SO user feedback on the company
Google Maps - Not sure why it wasn't already mentioned, but Google maps (http://www.google.com/enterprise/earthmaps/maps.html; more here) might be a possible solution. The high usage limits seem promising; you'll have to contact them for pricing, unfortunately. Still, it might be worth a look.
Bing Maps - http://www.microsoft.com/maps/
Nokia Maps - http://developer.here.net/
I was looking to find a solution to our product. We have a geo-location, on a web based dashboard that does not have internet connection.
I was looking for a product that allows you to have local maps and a script, I found OpenLayers which seems cool although weights 22gb.
Do you know if there are other solutions to generate map locally that takes less space?
If I assume correctly, you are basically looking for an alternative to Google Maps, i.e. an alternative mapping service where you can use your own local data, right?
Now, based on your question, its hard to tell whether you
Want to develop something for yourself or buy/adopt an already implemented software
Are looking for the serverside (i.e. tiling/caching engine, geospatial database, etc) or for the clientside or for both
I could give you an example of a possible configuration if you want to develop a clientside application yourself, but that might not be what you are exactly looking for.
For the serverside, you could use MapServer, backed by a PostGIS spatial database (PostGIS is an enhancement of PostgreSQL), and then use a client side Javascript framework BASED on OpenLayers to develop your client application (i.e., the map viewer), such as Fusion, which is also based on the MooTools Javascript Library. You could also natively develop with OpenLayers. There are a lot of possibilities in the Open Source world, it just depends on the skill and time you have.
Also, have a look at OSGEO, in the right sidebar you'll find a lot of projects that are hosted by them. It definetely is your first address for Open Source web mapping solutions.
I'm a beginner website designer and I was wondering whether there is a way to search for something in an outside search engine when you input a function in a field on your website. For example, the code I used to input a location for an event on my website is the following:
$query = '"$location"';
mysql_query("INSERT INTO `table`(`Location` ) VALUES (".$query.");");
However, how do I take that value I inserted into my database for location and subsequently search for it in another search engine if I want to look up that location on Google Maps. Thank you.
Edit: Many comments mentioned Google API, but being a beginner, I have no idea how to implement it. How do I specifically implement the Google geocode because that is really all I need.
If you're simply looking to query google maps for the location then you can use the geocode functions of the api
Geocode example: ctrl+u to view the source
If you want to query a search engine, such as google which doesn't have an api for such types of search then you should look at the DOMDocument object
Php DOMDocument reference
You'll be able to interact with this object in similar manner to how javascript interacts with the DOM.
What you're wanting to find is the API's for the web services you want to query.
With the example you used of Google Maps you would reference the Google Maps API to query Google Maps and display a result.
Please note that because a service has an API it doesn't mean it is free so careful planning of your sites/apps is extremely important. You don't want to promise something like a maps integration just to find that you exceed the free query limits and have to pay thousands per month to display a map on your website/service. On the other hand if you have an existing revenue generating site/app then it could be worth paying the cash and doing it.
Good luck!
Is there a "best" one? Does it offer as much flexibility as the Google API?
I am wary of using such wrapper, as I would need to take the time to evaluate each individually, so I am asking here if anyone has already done this.
Are there any benefits in a wrapper? The Google API seems clear enough.
And what guarantee is there that a wrapper will be updated as Google updates its API.
I would need something that can be used commercially. Should I even bother to look, or just stick with Goggle's API?
I woudl prefer to use POST, for larger datasets (and privacy).
Btw, please don't just google & post some links - I can do that myself. I'd like to hear from people who have actually used a wrapper. Thanks.
This makes an interesting read; it's the sort of thing I want to hear more of.
"What I was especially missing was some logic that automagically prepares the data for the chart. Eg. I'd expect the library to create sensible scaled axis labels on its own."
There is a good list of wrappers here
There is never a "best". Only a better for your case.
Various chart API exist, see http://free-wiz.blogspot.com/2008/07/best-free-chart-apis.html
gchartphp look nice and recently updated, http://code.google.com/p/gchartphp/