i have a google maps link which will open the google map application...#"http://maps.google.com/maps?q=cupertino"...instead of a specific location i want it to open with the current longitude and latitude..would the link be like #"http://maps.google.com/maps?q=ll" like that...or is there a different way to do it?
i am using CLocation framework
You can use different URL parameters to set the location like
?center=l,l
http://code.google.com/apis/maps/documentation/staticmaps/#URL_Parameters
Related
is there any alternative to google to implement a places autocomplete in flutter?
I am developing an application that needs the geolocation of places (I don't need to show the map) and use their coordinates
You can use Open Routes API's asi an alternative solution.
https://openrouteservice.org/dev/#/api-docs
Check that service as a reference... There is an option called "Directions" that can help what you are looking for...
I have integrated offline maps into my project with the help of route-me sample app (https://github.com/route-me/route-me). But my client wants to show topographical type of map as the open street map. I have searched over the internet, couldn't find any helpful resources.
Do you know any resources I should follow to implement this feature?
Should I have to use another way of implement the Open Street Maps in
order to get the topographic type of map?
You should maybe have a look at mapbox.com and their map tool (TileMill) which allow you to add and customize your own layers.
As for the topographic data needed to create your layers, you should be able to find some on websites like http://www.naturalearthdata.com/.
For example, http://maps.google.com/maps?q=to+chicago&hl=en&sll=40.680638,-89.846191&sspn=4.715299,9.865723&vpsrc=0&t=h&z=10 will bring you from your location to Chicago, although im not sure how the geocoding works. This is going in an iPhone app where the person will need specific directions from where they are, to a given location. Its web app based, so if it works on the computer, it will work on the phone.
enternet is full of open source projects you looking. for example: https://github.com/route-me/route-me
I would set up a script that can put the address at the end of a maps.google.com query url.
maps.google.com query url's look like this http://maps.google.com/maps?q=37.0625,-95.677068
you can places whatever you want in the query ex: http://maps.google.com/maps?q=los+angeles
SO I am a totally new and do not know where to begin. I basically want to create a view that shows the users current location and directs them to my set location (park, concert, business, etc.). It seems fairly simple but there is so much smoke and mirrors online that I do not know where to start or how to finish. Would it be easier to call to google maps or use the mapview in the SDK?
And the bigger question is how do you do this? I mean I can create simple views and load webviews but I can not figure this out.
Use MKMapView .. its fairly straightforward to set up -- you can get the current location from CLLocationManager and pass its coordinates to the map view.
http://mithin.in/2009/06/22/using-iphone-sdk-mapkit-framework-a-tutorial
Have a look at this website http://www.martip.net/blog/localized-current-location-string-for-iphone-apps
it will help you with the current location thing.
Directions are part of the Maps application and are not available in the MapKit API. To give your users Google Maps directions, you need to use the Maps URL scheme, as documented in the Apple URL Scheme Reference. Specifically, you need to include the saddr and daddr parameters in the URL, which specify the start and destination addresses for a directions search, respectively. I believe you can pass latitude/longitude coordinate pairs (comma-separated) for those parameters, but you’ll have to experiment a bit to find the correct formatting and order.
By "direct" do you mean actually show a path for how to get there? That there is no API for. You can place a pin anywhere on a map to show people where something is, but they have to figure out how to get there themselves.
The term you are looking for to add points to a map is adding Annotations to an MKMapView.
Have a look at this website it may help you http://www.raywenderlich.com/2847/introduction-to-mapkit-on-ios-tutorial
I'd like to be able to search and have the results pop up as annotations just like the Maps app on the iPhone. How do I go about doing it, and how difficult is it?
You need a forward geocoder to take a string (from your search bar) and find a list of possible matches, with coordinates and such. ... there isn't one included with the MapKit (only a reverse geocoder -- from coordinates to address string). However, there's a few services out that that do this. I think GeoSimple, CloudMaps, and a few others. The one linked below is an objective-c package that pulls results from Google Maps SDK.
http://blog.sallarp.com/ipad-iphone-forward-geocoding-api-google/