I was trying to display a MKMapView showing all the museums in a city. I haven't understood if this is a built in feature of the maps or I need to get the data somewhere else. Online I was seeing an example of government databases providing the information and location and then this was being added to the map. Does the map have this feature built in?
Nope, this is not built-in feature of the map (in apple map). But you have to make a filter (Query) that can fetch response what you needs (response will be in JSON format) and manipulate it in your map as a Annotaion.
Related
I am using Map kit to display a bunch of locations and data related to it.
When I use Apple Maps I can see that locations have related images provided by Yelp.
Does map kit provide a way to access those images? Is there any way to obtain images from a respective location??
Thanks.
Those images are not part of the SDK and you can't use them within your app directly, but you can use Yelp API to get business information, including images. Check https://www.yelp.com/developers/documentation/v3/business for more information.
Using the web version of Google Maps, I can enter a general place, like a neighborhood, and it will show that neighborhood, with its borders directly highlighted. Like this:
I want to be able to do this using the iOS SDK. However, I cannot determine through the documentation how to load a location by means other than a Lat/Long. Does this require the use of the Places API to work? If so, how?
Once I am able to display this, I want to display the user's current location on the screen, but keep the frame locked to the neighborhood. Basically, it will indicate to the user when they have wandered outside the specified area.
The Google Maps Api does NOT return neighborhood boundaries. You will have to build your own API for that.
If you're interested in NYC neighborhoods - I would contact the owner of locality.nyc - he can provide you with an API for that.
I'm afraid this is a general question, no code as such just yet.
I've built my app to date with Apple MapKit, and it is generating locations (strings & coordinates). I don't want to rebuild this with Google Maps SDK for iOS.
I'm looking to use Firebase as the back-end and they have some useful analytics when passing in Google Place IDs.
My question is therefore whether you can convert coordinates into Google Place IDs and therefore what my best option would be to achieve this?
It would obviously best if this did not involve using the SDK and I could somehow use an online API to convert the coordinates to place IDs...
Thoughts?
Yes if you have address of coordinate then use in below api and you able to get the PlaceID
https://maps.googleapis.com/maps/api/geocode/json?address=1600+Amphitheatre+Parkway,+Mountain+View,+CA&key=YOUR_API_KEY
check more detail in below link
https://developers.google.com/maps/documentation/geocoding/intro#geocoding
I come here to ask you some informations or maybe help to try to do what i want.
Here it's what i want to realize:
I have a website and on it i have some places in database (with lattitude and longitude saved). I want allow users, when they click on a button, display a map with a marker on their actual position and others markers who will represent the places from the database near them.
I found some tools like google map API v3. With it i can show the user position but i don't know how i can display the position of the places store in my database.
If you have any ideas or examples.
Thank you.
(PS: Sorry for my english)
I built a similar app with Spring and Java. What you'll have to do is create Placemark JS objects and pass them to the Google Maps API. You can also pass a map size to determine the scope of the map returned to the user.
In order to determine nearby locations, simply build some ruby/rails code to limit the distance of locations from the user location.
Get user location
Determine which locations to show on map within your rails app
Pass desired placemarks to Google Maps (This can be found in API docs which are great)
Display the map returned by Google Maps on a view.
I think you could use geocoder gem for that:
http://www.rubygeocoder.com/
I am trying to develop an iPhone app (with map routing function), and I need everyone's suggestions (guidance).
Below are a few specs:
The app will be running on iPhone with iOS 4+.
The app will have Map functionality.
In the app, given a "few locations" in a given order (to make things less complicated), the Map will draw routes between each locations on the Map.
Clicking on any location will display another page that shows some information about that location.
Can choose alternative route between two location (which I don't think is possible, but let me know if anyone know any framework that can do this).
I did some research, using Map on iPhone is easy using MapKit (and it's available after iOS 3.0). I followed this tutorial, and everything seems easy. However, if I want to draw routes on my map, I will need routes data in a CSV format. However, I do not have those data (yes! I suck).
And prior to iOS 5.1, MapKit use Google Maps, and I read somewhere that in Google Map's term and condition of use, it prohibit people from drawing on the Map (correct me if I am wrong).
In order to retrieve route data, I would imagine that I will have to get it through Google or Apple (I don't know if it's possible). I'm just wondering if Apple Map or Google Map have API to retrieve these?
If not, an alternative I came up with is to use a webview, and display my Map routes on Google Map. I'm just wondering if Google Map API will allow me to insert multiple locations and display all the routes?
I really need some suggestions... I am getting buried in all these problems.... thank you
Follow this sample - MKOverlay is the way to go. One more example is here.