Can some one point me in the right direction.
I would like to create a C++ application that uses google maps.
I need to be able to do the following
Add markers.
Calculate distance between markers.
Work out long/lat from address.
Get address from long/lat.
Get address from mouse click on map.
I've seen some components that do this but they are abit pricy.
Not certain if this will help you, but Delphi & Google Maps API V3 is the first part of a multi part series on the same blog about using Google Maps API V3 in Delphi. Even if you don't know Delphi that well, you can see the names of components that are used.
Good luck.
Ended up using GMLib found at the following site
https://code.google.com/p/dcef3/
so far it has done everything i have needed.
Related
Google’s 2017 map documentation does not say how to specify a split screen, lower part map, upper part streetview. Please, is this possible within a Google-map URL, and if it is, how?
Since you haven't give any more information about the language you use, im just gonna link the documentation from google.
Since its still usable, the realtime examples work and they haven't said a word in changelog or else, I would assume its still working.
Here you can get to the overall Google API Documentation
As an exmaple for the question, Google made a realtime Example with documentation, here in JS.
Also, even if its not possible to do in a short way, you can simply build two synchronized boxes. It just would take more effort.
For a project at school we have to work on an android app. This project involves porting the app which is working with Google Map to OSMdroid in order to use openstreetmaps. Our method was to replace Google Maps classes by their equivalent in OSMdroid.
We don't know if it's a good idea as it's our first android project. But we are having troubles finding some classes, like the equivalent of the class Google Map (we've found IMap but it's an interface and we haven't found any class implementing it.)
So here is our question: Can our idea work ? If yes, do you know the equivalent to Google Map class in OSMdroid ?
Thanks for reading
Osmdroid is almost full replacement of Google Maps v1, so the idea of replacing Google Maps classes with their equivalent could be good idea if the first app using Google Maps v1 but with Google Maps v2 things are different.
But yes! most of Google Maps functionalities supported by osmdroid. However, you need to convert the app by looking for how to implement each function using osmdroid not by replacing classes with equivalent.
About the second part of the question. No, there is no one class in osmdroid that support all functions that Google Map class provides, but you can find most of that class functions in different osmdroid APIs.
For a good sample on how to use osmdroid take a look at OpenStreetMapViewer sample project https://github.com/osmdroid/osmdroid/tree/master/OpenStreetMapViewer
I am working with Google Maps on Android 4.0 and I would like to know:
Is there a testing framework (or anything..) that can interact with the Google Maps API? What are the possibilities when interacting/testing with Google Maps on Android? Is it not possible to find all pins on the map and perform a click on them or perhaps determine zoom level?
There seem to be a couple questions on this website dealing with similar issues/questions with no answer.
I realize "interact with" is a broad term. I am really looking for any kind of help whether it is a suggestion or just to tell me something is not possible.
I have been using JUnit but it seems limited by itself. Just today I started looking at Robotium since the majority of tests I need to do are UI based. I am new to Robotium so maybe it is possible with this and I have not discovered it yet?
When our team created an Android application that used Google maps, I was able to create tests using the R.id for the map fragment. It is important to note that I had access to the Application's code, so I knew what variables to look for.
Prior to creating this test, I wanted to make sure that I was targeting the correct R.id, so I went into the R file, copied the value and placed it in
assertEquals(id.satellite,copiedRValue);
which returned true, and then build the test around the changeable variable
initialID = solo.waitForFragmentById(id.satellite); //where id.satellite is defined in the R file, eventually would time out and throw error if fragment was not present
//save the map type, leave
//and do other awsome stuff
//before coming back to the map
finalID = solo.waitForFragmentById(id.satellite);//capture the map fragment that is now displayed, again would time out if this specific fragment was not visible
//assert that the fragments are equal
assertTrue(initialID.equals(finalID);
The biggest problem that I had with this test and with other Robotium tests is that I had click events happening to bring in menus and sometimes Robotium would not perform the click, and the test would fail on the click.
This was my first go at testing with Robotium, so there might be other ways to manipulate the R.id values to create a tighter test.
In case anyone wants to know after much searching I finally found something that can test Google Maps. Things such as zoom level and I believe tap pin (method is called tapMapMarkerItem()) are supported. I have not tested the pin tap yet tho.
Apparently the awesome Robotium does not support map testing by itself. Nicholas Albion was nice enough to create an extension to provides testing support for maps on Android. Thank you so much Nicholas!
So here it is:
1. Download the Robotium jars from robotium.org (I found this helpful http://www.vogella.com/articles/AndroidTesting/article.html - by Lars Vogel)
2. Download the extension from https://github.com/nalbion/robotium-maps
I can't find any reliable info about some kind of "human" readable front end or api to pgRouting.
I have OSM PostGIS/pgRouting database which I would like to use to calculate paths between points. The problem is that I can't find any software that would use pgRouting to expose some ind of API. (WebService/comandline/anything usable)
I would like to provide to such API start, endpoint (GPS cords) and some parameters (don't use high ways and such). As a result I'm counting for distance, travel time and list of points to draw a poly on map.
Any ideas?
As I know, there isn't any apps, that you looking for, so you have to operate with direct SQL commands. (pgRouting is just a collection of functions in postgreSQL).
A simple pgRouting direction back-end API written in javascript nodejs express.
Easy to use and deploy.
https://github.com/imran-5/pgRouting-Direction-API
I want to display a map in a MFC application (Visual Studo 2008 with MFC Feature Pack).
Off the top of my head I have the following requirements:
I have to be able to add my own markers (plain lat/lon positions), preferrably with different colors/icons so one can distinguish between different types of markers.
If the map data is fetched from an online source, it has to be cache-able, i.e. I can pre-load maps for an area at a certain (or several) zoom-level(s) and then switch to "offline mode". Alternatively all map data is installed together with the application.
The standard operations like zoom in/out and pan should be possible for the user.
The user has to be able to select my markers, preferably by dragging a rectangle around them.
Since the whole app is written in C++/MFC I don't want to have to use the .NET runtime for this plugin.
It shouldn't cost a fortune.
I am currently using an ActiveX plugin called "ESRI MapObjects LT2" which can do all that in some way but it's very tedious to implement, the development seems to have stopped around the time when Visual Studio 6 was available and map material is either very basic or very expensive.
I thought about using Google Maps or Google Earth but I think they don't really support being used by non-web based applications.
I found ArcView to be some sort of successor of the plugin I use currently but I don't think I belong to the target audience since the functionality it offers is way more than what I need. Also I didn't find any information on pricing.
I have written an open-source Geocaching app ( it's in c++ ) that renders maps, the source is at:
http://code.google.com/p/gpsturbo/
It uses my own custom rendering but you could rip out the map parsing if you want. It renders map using google tiles ( and caches the tiles for offline use), as well as Garmin format GPS maps, there is also an Openstreetmap format renderer as well.
Reconsider google if you have internet access. You can make an instance of the IE browser appear in a frame within your application. I believe you can use an ActiveX control. Also Google Earth has a way to embed itself into a web page, and possibly an application as well.
Another option is Global Mapper which is not anywhere near as nice as Google Maps or Google Earth.
We used ESRI for a long time before abandoning it due to a lack of performance and lack of support. It was such a big pain to pay $10k for a license, and then be told they need $2k more so that we can actually use the thing. Oh, and then $2k more to add some extra functionality. Even when it didn't work, their support was dismal to lack-luster.
If you are not bound to Google Maps, you could choose OpenStreetMap.
There are couple of known applications for rendering OSM maps:
http://wiki.openstreetmap.org/wiki/Cobra
Kosmos
osmclient (on SourceForge)
First two render map directly, last one uses OpenStreetMap.org tiles.
You can cache as many tiles or data as you want, you are not restricted to do so.