Open Mahir09 opened 2 years ago
@Mahir09 You can create account and get tokens from https://www.mapbox.com/ and https://www.sanity.io/ first
Thank you very much for your rply but I have created account on both but i am no aware about creating that mapbox urls. I am familiar with environment variables in sanity.
On Sun, 25 Sep, 2022, 7:03 pm AdheCode, @.***> wrote:
@Mahir09 https://github.com/Mahir09 You can create account and get tokens from https://www.mapbox.com/ and https://www.sanity.io/ first
— Reply to this email directly, view it on GitHub https://github.com/AdheCode/NextJS-Uber/issues/1#issuecomment-1257195450, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARH274JYQIWXRQ3Y7ARRSDLWABIELANCNFSM6AAAAAAQVCKYHE . You are receiving this because you were mentioned.Message ID: @.***>
@Mahir09 Fill the urls use this MAPBOX_PLACES_API_URL=https://api.mapbox.com/geocoding/v5/mapbox.places MAPBOX_DIRECTIONS_API_URL=https://api.mapbox.com/directions/v5/mapbox/driving-traffic
done that and it's completely running thanks for the help
On Mon, 26 Sept 2022 at 16:12, AdheCode @.***> wrote:
@Mahir09 https://github.com/Mahir09 Fill the urls use this MAPBOX_PLACES_API_URL=https://api.mapbox.com/geocoding/v5/mapbox.places MAPBOX_DIRECTIONS_API_URL= https://api.mapbox.com/directions/v5/mapbox/driving-traffic
— Reply to this email directly, view it on GitHub https://github.com/AdheCode/NextJS-Uber/issues/1#issuecomment-1257839152, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARH274I6GJF235JGOEBITWLWAF42XANCNFSM6AAAAAAQVCKYHE . You are receiving this because you were mentioned.Message ID: @.***>
Create .env file in root project and add: NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN=YOUR_TOKEN_HERE SANITY_PROJECT_ID=YOUR_ID_HERE SANITY_TOKEN=YOUR_TOKEN_HERE MAPBOX_PLACES_API_URL=YOUR_API_URL_HERE MAPBOX_DIRECTIONS_API_URL=YOUR_API_URL_HERE NEXT_PUBLIC_UBER_ADDRESS=YOUR_ADDRESS_HERE
I am unable to create this API.... Can you please help me???