I am trying to create a Java project and I'd like to know if it was possible to retrieve the coordinates of the nearest street according to a GPS point. Thanks to googlemap static or other free support.
Thank you
I recently found geopy, it is developed in Python. I dont know if it helps.
https://code.google.com/p/geopy/
Related
Maybe there's a better place to ask this, but I figured maybe someone has come into this problem before and can give me a hand with it.
I have a bunch of locations (36k) and they are represented using SIRGAS2000 (UTM 21s) coordinates. I need some way of converting them to traditional LatLng (Geodetic) format so I can upload them to my database and use those coords with Google Maps API.
Has any of you ever bumped into something similar?
Ok, I just found a JS library for this task. It will convert from and to various types of coordinates.
Here's a link to it in case anyone needs it ...
http://www.jstott.me.uk/jscoord/
Some examples in there too
I am in need of importing custom roads into Google Maps, (ie: new roads that may not yet be visible in Google Maps) and I would like them to be included in the Directions Service API. The approach I was thinking about first, was to use Google Maps Engine to import a shapefile containing the road data of what I need and create a map based on that. Then I would use the Directions Service on the data in that Custom Map. I am very wary as to if this will work, and as far as I can tell there isn't a trial version of Google Maps Engine that I can use to test this out. And I really don't want to purchase it if it isn't going to work anyway.
Does anyone know if this way will work, or if there is a similar service that Google provides that will work for what I require?
I assume I will need to implement my own directions service if I want to do this, but I want to see if there already is a service out there that will instead.
Thanks!
EDIT:
To try and clarify:
I want to import a set of custom roads obtained by an alternate source. These roads are in a shapefile format and are more up-to-date than some of the roads on Google. What my goal is, is to use the existing google roads, and "merge" the data that I have where necessary. Say in the far north of Alberta Canada a company has put some roads in for getting to their oil site. I want to import those roads and be able to tell our drivers how to get there. They would take a main highway that google already has, and then turn onto a road that doesn't show up on google because it is too new. This is where the alternate data set of roads would come in.
I want to find the best way to do this, while obtaining directions that incorporate those new roads. I understand that this may not be possible using google services, but I am asking in case someone else has come across this problem.
I guess I should update this to my solution, in case anyone else was wondering the same thing. The answer is NO, currently there is no way to import custom data like roads into Google Maps and have them be included in the directions service. I have talked to a Google representative on the phone, and they have let me know this.
I had to implement my own routing engine, which I did using PostgreSQL, PostGIS, and PgRouting.
I have a point with lat-long and i want to know what type surface(toponym) that point is: house, road, land etc. How can i do this with google api? I cant find solution.
The Google maps API doesn't provide a solution for figuring that out.
I need to create a KML file that will overlay buildings on a map. I have a lot of buildings so there will be a lot of coordinates to figure out. Is there a tool that can help out with this?
Thanks.
Presumably you already have the addresses of these buildings. To generate the coordinates of these automatically, you can put the addresses in a single file and write a few lines of code to iterate through calling something like the GeoNames web service
http://www.geonames.org/export/web-services.html
which will geocode them for you. While their basic service is free, they also have a premium service:
http://www.geonames.org/commercial-webservices.html
I've got a request to implement a visualization service for geographical related data.
I have a list of Italian ZIP Codes (they are called CAP in Italian). I've already found a table which maps these ZIP codes to geographical coordinates (lat/long).
So, the data I have to visualize as map is structured the following way:
ZIPcode Latitude Longitude RequestCount
------- -------- --------- ------------
Is there an easy way (using a web service or implementing it myself using a component - preferably in .NET) for creating a map chart similar to the image i inserted below? It needn't to be that pretty and not necessarily geo-political.
I just need a indicator for every point which shows a smaller or bigger circle and next to it the value of RequestCount. I think this could be done either using the coordinates or, if there is some service which maps the Italian ZIP codes, using the ZIP code.
Thank you in advance!
alt text http://img515.imageshack.us/img515/3814/carsalesuh6.png
GeoNames offers a data set and open source libraries for geo mapping
Take a look at .net Charting and Chart FX Maps (I've never used these before).
Maybe...
Use the Google Map API. You can't draw circle overlays, but you can draw polygons. Here's the API for drawing polygons. An 8-sided polygon already looks pretty circle like. You could experiment with more sides to see how that looks.
Here's the API reference for the Google GPolygon class:
http://code.google.com/apis/maps/documentation/reference.html#GPolygon
I've used MapServer for many projects and it works well and is very flexible. Haven't tried the .NET bindings though:
http://www.paolocorti.net/2006/09/20/mapserver-tutorial-for-c-mapscript-asp-net/
I've used Fusion Maps for things like this. It is flash based with a javascript API. You can easily feed it either a static XML file to start, but I've also built various webservices to give it dynamic capabilities. There are many options to change the look and feel of the map as well.
take a look at Mapv - a library of geography visualization
enter image description here