Are there any ways to get information about different places (cities, mountains, rivers , etc) via latitude/longtitude?
I'm planning to use it in my rails project.
Of course, it will be perfect to use information from wiki. Any example of searching over wiki via lat/lon?
May be any other technology/website/api?
You may also check the Geocoder gem to find address by latitude and longtitude. Then you can use wiki api to find articles, like this:
en.wikipedia.org/w/api.php?action=opensearch&search="place_name"&prop=info&format=xml
Or, maybe wikilocation will help you
Check out the Open Street Map API http://wiki.openstreetmap.org/wiki/API They tend to discourage read-only queries, but you can probably find someone else's API for that data.
Also check out http://www.gisgraphy.com/ They have a free webservice here http://www.gisgraphy.com/documentation/user-guide.htm#geolocwebservice that looks like it has what you are looking for.
Related
Hi I would like to implement a function in Rails that serves both to have an autocompletely of the location (I saw that I need the Google API but I have not understood how to do this specifically) and I would like to implement a function for which it suggests a current user list of "nearby" users based on the location they have chosen as their residence.
Can you tell me which gem to use and if there is any example of similar use?
Your question is very vague, and we are not going to code everything for you. You should at least have a look at the google-maps gem https://github.com/zilverline/google-maps
and read the maps API docs
https://developers.google.com/maps/documentation?hl=en (for Places, Maps, Routes etc...) to see if you find anything that could work for you.
You can also search StackOverflow first to see if you find anything interesting as well!
Maybe once you started coding or understanding some concepts you can come back with a less vague question and we will help you!
I know this question has been asked but most answers were a few years old and not all for a Ruby on Rails project. In my current project, I am using the Geocode gem (via Ruby on Rails) and anyone is able to search users by their location (which I also use the Carmen gem for country, subregion).
Anyway, I've been receiving this issue lately (Google Geocoding API error: over query limit.). After reading up on it, I see that this is quite common. Most of the resolutions seem to involve caching but others say that it does not work much/well.
I wanted to pose the question to many here and see what various people think is a good resolution. Ideally it would be great to keep the Geocoding gem within the project, but if it is not worth it, please let me know of an alternative. If you know of a resolution to this issue, please let me know too.
Thank you and simply looking to receive feedback for this situation =)
PS: I do not use the Google Maps API. The project is setup so that a user enters their information (using Carmen gem) and typing the cit. The location is geocoded and others can type in a city, state/region to find users within that region.
EDIT
Additional Question: When this limit is met, would that also cause the longitude and latitude value to be nil when a user signs up? Since it is as the limit, it will not geocode the location entered and so it keeps the value at nil? I've had this happen before so I just want to make sure this is why =P
EDIT 2 - ANSWER?
After speaking a bit (in comments below), it seems the best option is to cache the information. With that being said, after researching I see that there are a lot of legalities when it comes to caching with google? Again I do not use the Google Map API so the legal aspect may not be relevant?
Would this be a good solution to implementing the cache (https://github.com/codeforamerica/ohana-api/wiki/Customizing-the-geocoding-configuration)?
Just want to make sure I implement the cache aspect properly =P Thanks!
Joe
ANSWER
So after some research and help from japed (see comments above), I found this documentation (https://github.com/codeforamerica/ohana-api/wiki/Customizing-the-geocoding-configuration) which clearly explained how to setup Redis with Geocoding for caching purposes. It also provided another link with more information to test it in development before deploy.
Thank you!
Joe
I need to implement street view, but it seems that google does not have that capability for India.
I want that The map should be dynamic and the customer should be able to see point of interest near a specified point and within a given radius or zip code.
I need to geocode and reverse geocode
Can somebody share an idea and one quick example of this.
if you want to get places of interest near by some location, then I would suggest using HERE PLACES API for that task. The site should also include nice examples for the API. Also its simple REST API, so it would work in any platform really.
Can I get the country information just from Latitude and Longitude of the user? I know it should be easy to get it from Geocoder APIs from Google. But is it possible to derive that information without using any services like Google's?
Could you please let me know?
The only way of doing this is by using a third party API or creating your own database, which is a lot more work that it's worth. Have you looked to see if there is a GeoIP database that you can download for your programming language of choice (Or a generic one?)
Edit: This looks like it might have the data you need
obviously, i think its overkill for me to run a spider that will crawl the internet autonomously like google or yahoos.
so i am wondering, if there is some way i can access a major search engine's database, instead of scraping them ?
Google and Yahoo both have APIs:
http://code.google.com/apis/ajaxsearch/
http://developer.yahoo.com/search/
But like everybody else said, we need more info about what you're trying to do to help you.
Other than doing regular searches, no.
What are you trying to do?
Nope. You're already violating terms of use policy by scraping them. That kind of information is carefully guarded for obvious reasons.