I have to develop an algorithm for location based data grabbing and displaying it on a mobile device. I'm just a web programmer with some knowledge of php and mysql. I need to develop this algorithm. Please give some instructions on where to start the development.
You could have PointOfInterest table that relates to address.
Let say I want to find an ATM in Chicago. Then you perform a seach for all ATMs in chicago.
After you get your result set you perform distance calculation over each of them and check which is the closest one.
Here you may find a way how to calculate distance based on longitude/latitude coordinates
http://www.movable-type.co.uk/scripts/latlong.html
Related
I am developing an app which will give you nearby Mosques within 10 km of your current location. Now that the Places API allows a certain number of queries per day, I have used firebase to store nearby Mosques for a certain location and I first check if the data is in database or not before querying. But this still doesn't solve the problem. e.g. if a user is on the go the whole day then the results must be changing every single minute, according to his/her location. How can I achieve the desirable results?
As mentioned earlier, I am saving nearby locations in a database with their relative location (around which they exist). But this doesn't quite solve the problem.
Any help will be greatly appreciated.
Places API is a commercial offering - you are meant to pay for using it, if you want to make applications around it.
There's a certain small number of calls that you can do for free, but this is only meant as testing grounds or private use. I am no lawyer, but I would guess that circumventing the fee by scraping the map (like setting a bot to go around a country to build a database of points of interests) would be illegal and would probably get you a letter from Google saying you should stop.
Use AutocompleteSessionToken class to generate a token and place it after your key , this token will reduce your usage because you can request the places api multiple times and still it will be considered as a single request. i hope this will help cause i didnt get your question very well. here is sample of the link:
https://maps.googleapis.com/maps/api/place/autocomplete/json?input=1600+Amphitheatre&key=&sessiontoken=1234567890.
For more details.see here
I have a gps coordinate, I wish to get a list of adresses inside it's certain radius. From these adresses I wish to select the ones that are companies and contain specific sector name. (clothing, finance, metallurgy, etc..), I thought the returned api object may contain the necessary information to make the distinction. Is there a free api that has the necessary functions to bring me closer to my goal ? (like google maps, google places, yahoo placefinder, and similar applications.)
Note: I use the MVEL language, I guess it has access to some Java functions so you can consider me writing Java, but any information considering the MVEL language is also appreciated.
Note2: Radius is not an essential requisite, it would be enough if I found the adresses in a certain district. The classification however, is necessary.
I think you can take a look into :
GoogleMapServicesJava
Particulary into the Places API service :
Places API
Where you can query a search sort by radius, place type, etc...
Hope that will help !
I'm new to openstreetmap. I want to use openstreetmap in a java application to get distance between two points. And also to find more information about a particular road, etc.
I discovered JOSM, but all I need is to calculate distance between two points in a road, also get some more information about that road, when necessary. Anybody knows which class/methods in JSOM will help me do that? Or is there any other simpler method/api to do that with OpenStreetMap?
I have to do this simulation model but I don't know how to start it and where to start it. i asked my supervisor about this , he also not have a clue about this. so I'm asking your opinion.
Here is what I have to do.
I have to simulate GSM signal strength from area to area in a simple map model.
I have to show the user location and when changing the user location from one place to another which tower gives the mobile client the GSM signals it require
I'm not asking to code this or something guys, I'm just asking to show me the way to do this?
Any tutorials regarding this, your knowledge to sort out the things would be very helpful.
I have a knowledge in Java also.
Regards,
Rangana
If it's just a simulation, it can be faked quite easily (unless I'm misunderstanding what's required).
Create your map model in whichever format you need to. This might be using Google/Bing maps API, or a custom map.
Create a list of GPS coordinates and traverse through them to simulate the user moving around the map.
Calculate the distance between the user and each tower (could use the Euclidean distance) and determine the strength of the the GSM at an given point. I'm not going to explain how you could calculate such a value, but it should be pretty easy.
Without more specific information, it's pretty difficult to give any more detail. Is this part of a university project?
For my CS bachelors I am doing a Senior project using android and google maps.
My vision was to do a (relatively) simple Dijkstra shortest path using google maps road data. I was going to add elevation change along with 2D distance. I am doing well playing with maps in android but I am completely stumped trying to access google maps data in any sort of searchable form.
How would I go about accessing the data for say intersections of roads (lat/long) in a particular area?
There has to be a way to pull that data in some sort of tree form. It seems like it may be possible with kml?
Any pointers would be awesome.
I want my paths to follow roads but If i cant this is going to turn into an orienteering application fairly fast.
Jeff
You might want to look into http://www.openstreetmap.org/ instead, they have the lat/long points of streets available for view. Google and others buy theirs, which keeps you from being allowed to access the raw information.
I don't believe you can access raw road data from Google Maps (such information is very valuable - if Google gave it out for free I can see car navigation companies going bust!). The best you can do is get the end result.