If I supply an address as a NSString. How can I use mapkit to show me a map with that location centered and a push pin showing that address? What's the easiest way to do this?
EDIT:
Is there a way to call the built-in Maps app to do that for me?
You'll need to forward geocode the address to obtain GPS coordinates. This data is available from third parties like Google via their Geocoding API. Here's a tutorial on forward geocoding using Google APIs.
Take note of their terms of use.
Related
I have been trying to use bing maps API's function getCurrentPosition from a mobile device via 3G internet. I was expecting the Samsung SIII, being a high spec device, to work without any problems.
However when the mobile connects over WiFi I am able to get my location whereas when I switch the connection to 3G I do not get my actual location.
The pushpin does point to my house but as I move away from it, it does not react to my position. It's like getting the location of the server hosting the function (which is my computer at my house).
The GPS is on and correctly set on the mobile too.
Moreover, the getCurrentPosition is inside a recursive loop which invokes it every 500ms.
Now I know for sure that bing maps API works mobile devices since I have been involved in a Vodafone organized treasure hunt using tablets. Please guide me to solve my issue.
Thanks,
Justin
The positioning service is directly related to the device and its own implementation to find the position assumed by and from the various method that was used to find the best matching. It does not seem to be directly related to Bing API in this specific case.
In order to improve positioning speed and precision, the different systems can switch to Wifi-Positioning to other method like A-GPS or even cell identification.
If you try to get the information about your position based on your wifi, on Android, we can easily assume that it will used the Wifi-cell as the position that means that the known location would be the one retrieve from various crowdsourced information from your own devices and also others. That said, in WiFi, you will not be moving, you are connected to the Wifi cell without any other information.
If you cannot get your position in 3G, try to go outside so it can use the most precise positioning method (A-GPS) as it appears that phone cell-id is not working in your area.
Im working on a application for which I need to decide in which country the user is. Which is the most accurate way to do this?
Should I use GPS or IP-adress?
What would be the pros/cons with each method?
I would use Apple's location services, which use several technologies (cell towers, WiFi hotspots, GPS, etc.) to determine their location. You can then find the country quite easily with a lookup of the GPS coordinates. I think this would be more accurate than by-IP lookups.
Its probably easier if you go via ip address and use a geo ip lookup service.
For GPS the GPS unit needs to be turned on. I guess lots of people disable it for energy saving. If you just turn on GPS for your check the user needs to get a gps fix first which can be time consuming as well.
I am trying to add 3d images to Bing maps, however I do not have an internet connection at my work pc and I would like to know how I could work on adding things to bing maps when no internet is available. Is there a way I can download samples of bing map that allow me to work with bing map and the bing map api?
Thanks
Whilst technically easy to do, the Bing Maps Terms of Use explicitly prohibit creating a local copy of the API or any Bing Maps content (with no internet connection, you'd also need to create a local copy of all the base map tiles that would normally be served to the client) - see http://www.microsoft.com/maps/product/terms.html
The only legal way of creating a local Bing Maps installation with no internet connection that I'm aware of is by purchasing a licence for the Bing Maps Server provided by Vexcel - http://www.vexcel.com/geospatial/bingmapsserver/index.asp. However, don't expect it to be cheap...
From the Vexcel website's FAQ:
Q. Can I import DEM’s or 3D models into Bing Maps Server or Bing Maps
Desktop?
A. This capability is under development.
By the way, Vexcel Corporation, as Microsoft’s geospatial subsidiary, is the exclusive provider of the Bing Maps Server.
In my app, I am trying to figure out the location of my app user using WiFi (not GPS because my main area is inside the buildings), can any one please tell me how can I get user location using hotspot of WiFi.
Any basic guide or example is good .
Thanks in advance.
egards
Use Core Location. The Core Location framework hides the actual device capability from you (more or less) and (depending on the options you set) give you a best estimate for latitude and longitude. I've used the exact same app on an iPhone and iPod touch and have gotten pretty good results with the touch. It won't be as accurate, but it's good enough for most applications.
Check out the Core Location documentation and the "LocateMe" sample code from the developer site: https://developer.apple.com/library/ios/#samplecode/LocateMe/Introduction/Intro.html
Unless you mean to figure out the location of your user in a specific building with known Wi-Fi spots, you'll have to resort to using a IP address geolocation database. There are services, such as that provided by MaxMind, that have a database which you subscribe to for updates. The database maps IP addresses to locations.
This will only get you approximations, so your best bet is to use GPS primarily but IP address as a backup.
I want develop application for read user information on iPhone
IP Address/ Wi-Fi Address
Network
Version
Serial Number
Latitude (map)
Longitude (map)
what kind of these thing I can read or it can't, please suggest me in your opinion.
Thanks.
You can retrieve all of those.