Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Apr 10, 2023. It is now read-only.

An Mapbox and ViroReact integration to navigate to a POI using Augmented Reality

License

NotificationsYou must be signed in to change notification settings

mherrerabarraza/mapbox-viroreact-point-of-interes

Repository files navigation

Points of Interest

This project won't be mantained anymore

Thanks all for the support and to be interested in this project, but I don't have time to keep mantaining it.

A ReactViro + Mapbox integration for Navigate to one geoposition to another using Augmented Reality

Instalation

1.-Clone the repository :
2.-Install modules : yarn install or mpn install; depending in how you manage your modules
3.-Get a Viro and Mapbox Token:ViroKey andMapbox
4.- Use your Viro Key and Mapbox Token inApp.js where says "USE_YOUR_KEY_HERE"
3.- Feel free to Use and Re-Use this code.

Important folders

api/ -> contais the pois and search method
screens/ -> contains the menu views or "screens" using 'react-navigation'

Important files

App.js -> Main File.
screens/HomeScreen.js -> Main screen contains search POI function
screens/MapScreen.js -> contains a renderable map using Mapbox API. Renders the POI and the current location.
screens/ArScreen.js -> Render the ViroPolyline that handles the AR pathway experience
api/pois.js -> contains the points of interest with latitude and longitude
api/index.js -> contains the method to search points

How it Works?

Using the search function inside 'api/index.js' you can search an specific POI (Point of Interes)
Once the point is located in the searchbar select the point and the app prompt an alert to "show this point in the map", next the point is showed in the map using a pointer. So, there you have two buttons one to back to the searchbar and one to go to AR navigation.
Because im using geoposition the async function to search for the point, this is gone to take a moment to activate the button to go to AR Navigation.

This use the Proj4 module to transform GPS points (latitude,longitude) to Cartesian Points (x,y,z) then use this (x,y,z) point to render theViroPolyline.

Thanks

Especial Thanks toIsaac Besora

Releases

No releases published

Packages

No packages published

Contributors2

  •  
  •  

Languages


[8]ページ先頭

©2009-2025 Movatter.jp