Get indoor position with bluetooth beacons with HERE SDK - flutter

Hey I am using the HERE SDK and we are trying to make it possible to track the position indoor. We have the indoor map set up on the here map inside the app (made in Flutter). Now we want the user to be able to move around and show the position on the map by using beacons. We receive the following information from the beacons
(using flutter-beacon for this https://pub.dev/packages/flutter_beacon):
// Example Output: {"region":{"identifier":"Minew Tech"},"beacons":[{"proximityUUID":"74278BDA-B644-4520-8F0C-720EAF059935","major":256,"minor":30313,"rssi":-99,"accuracy":12.77,"proximity":"far","txPower":-59,"macAddress":"84:EE:03:53:95:D0"},
// {"proximityUUID":"E2C56DB5-DFFB-48D2-B060-D0F5A71096E0","major":0,"minor":0,"rssi":-75,"accuracy":0.28,"proximity":"immediate","txPower":-59,"macAddress":"AC:23:3F:A9:2E:7F"}]}
How can we use this information to update the position of the user on the map ?
Do we need to use this API:
https://developer.here.com/documentation/positioning/api-reference-swagger.html ?

The Indoor Positioning service is not part of the HERE SDK but delivered through a separate SDK that can easily be used together with the HERE SDK. The Indoor Positioning service is not available for self-serve yet but requires the involvement of a HERE representative at this point in time.

Related

How to programatically choose level in indoor maps via Android Maps SDK

Is there a way to programatically select a level in indoor maps using Google Maps Android SDK
Here is what we are trying to achieve:
Android app lists different stores in a particular premises (for which indoor maps are available)
Android app has a feature to locate a particular store on the MAP
Android app to use Maps SDK to put a marker on that particular store and if that store happens to be on level 2 (non default level) choose level 2 programatically
Any help regarding this is appreciated !! Happy to provide any further information that may be required.
You can't get a list of stores but you can programmatically select a floor of the building. Therefore first you have to zoom in to the position LatLgn pos where the building is.
map.moveCamera(pos, 18));
Afterwards you retrieve the focused building and select the level you want
IndoorBuilding building = map.getFocusedBuilding();
if(building != null) {
List<IndoorLevel> levels = building.getLevels();
//active the level you want to display on the map
levels.get(1).activate();
}
Chec this links for more information
https://developers.google.com/android/reference/com/google/android/gms/maps/model/IndoorBuilding
or this
https://developers.google.com/android/reference/com/google/android/gms/maps/model/IndoorLevel

Covering a MKMapView with an image

I want to create kind of a map view, just without the map..
Sound strange? I'll explain - I have a bunch of coordinates representing users location that I want to show on screen with there relative location from one another and from the user location (in center of the screen). But I don't want to show the map itself because I don't won't to expose the real address for privacy issues.
The map should look something like this:
I though of using the regular map kit so I have all of its functionality but I'm not sure how to do that. and I'm not sure if this is a violation of the google service license...
Any ideas?
You might want to consider to just ignore the mapkit and go with just location and images as pins. You can easily calculate where a person is standing in relation to another by just the longitude and latitude. it is not a violation of the terms as the gps from the iphone has nothing to do with google. Only the actual maps do.
(however if you are using google api related stuff without showing a map it might be a violation, for example you cannot query for altitude to google itself without showing a map. But then again the phone's gps gives you the altitude.)
Well, First of all it will be the violation of Google, as MKMapView by default will query map tiles from Google server behind your hidden Overlay. So don't do that,
What I would suggest is to look into third party customize map solution for iOS. Something like MapBox.
See : MapBox
iOS SDK of MapBox : SDK
In which you can customize the color and look and feel of your Maps and location. There are paid option and free options too. Regarding the privacy issue I suggest you shoot an Email to MapBox people and ask if you can just hide the street names from the App.

google maps in UIWebView passing data from core

I want to use to UIWebView to display google maps mobile website for my app. However; I need the current user location to be passed into the webview so that it may show a route. What steps must I take in order to not only pass the current location to the google maps url but also pass what I want it to route(for example, Costco)?
Second, my app is going to be a paid app and I was wondering if it is even possible to use google maps due to this? The app does not only have gps but other sections as well that I created myself.
Thank you so much
I think you dont want to show google-maps in an UIWebView. You should use either the MapKit-Framework or any other maps-framework like for instance route-me.
In both framework it is possible to draw polylines (links: MapKit, route-me) (which represents a route) and any other stuff like pins and a bubble with a circle around it which indicates the current location (links: MapKit, route-me (should be somewhere in the sample-programs)).

How to obtain the current location inside a building using an iphone?

I played for a while with the maps framework from the iphone os sdk and the routemap api from cloudmade and it was fairly easy to display the current location and other information on a map by using the data provided by the GPS.
I have the map of a building(airport, mall etc) transformed in tiles of some sort, my question is what would be the best approach to obtain the current position of a phone inside a building? I know that GPS is not accurate inside buildings or might not work at all.
Unless you have a strange sort of building (i.e. radio transparent roof), you will not get a GPS signal inside the building, unless you are close to a window, which there are usually very few of (in a mall anyway).
You will not get useful positional information from cell triangulation (not at mall/airport terminal scale anyway).
I'm afraid I can't see any way to do what you are trying.
EDIT: come to think of it, some malls do have a glass roof, so it might be possible to get a GPS fix in some places. And some small airport terminals have big glass walls, although you'd be unlikely to want a map if they were very small.
If you are able to install a few WiFi nodes inside a building, you can get your location inside this building with Navizon's Indoor Positioning System.
They have a demonstration video of their indoor navigation solution on an iPhone.
Since you can't use GPS or Cell towers, you'll need some other sort of RF sources, that have known positions (as GPS and Cell Towers do) Perhaps that's what you're targeting anyway, something like a mall or airport with a number of WiFi routers in known locations, that you could "ping" off. It's not that simple of course --- an interesting research paper on such a service is at Microsoft Research: In fact they write about possible applications such as malls or airports.
Indoor Atlas maps magnetic fields in buildings and then uses smartphone magnetometer data to geolocate indoor locations to within 2 meters. It's based on the fact that buildings have predictable magnetic fields due to the materials they are constructed with. It's the best solution I've seen for this. You can try it for free as see if they've mapped the particular buildings you're trying to geolocate inside of. Another solution I've seen requires bluetooth devices within the building to assist with the geolocation, not as good because of the infrastructure requirements.

iPhone SDK: Get GPS coordinates from Google Maps

In an iPhone application I'm developing I need to get GPS coordinates to perform some actions based on the values received. Users should have two possibilities of giving the location:
automatically from iPhone build-in GPS
by finding a specific point on a map (Google Maps)
I know how to user CLLocationManager to get current position coordinates and I know how to add Google Maps using JS API. What I would like to know if how can I get coordinates for a specific point on a map that user clicks. Is that possible with UIWebView or is there any other way of getting the values I need?
I'd suggest using MapKit framework (introduced in SDK 3.0) that uses google maps services. MKMapView and other classes will provide all functionality you want without the need to mess with java-script:
Displaying google maps
Showing and tracking user location
Easy converting between view coordinates and geo coordinates (see convertPoint:toCoordinateFromView: and convertCoordinate:toPointToView: functions)
Creating and showing custom map markers
Reverse geocoding
etc. :)