Saving new users' address and geolocaiton information - lan-solo-capstone/freeshare GitHub Wiki

  1. User submit address from front end UI
  2. React layer captures the entered address information from the browser input.
  3. Front end will make an Axios call to backend with user address information.
  4. Backend API route calls Mapbox api ( or alternative geolocation api)to resolve address into geocoords(latitude, longitude). Using first result providing it has a match relevance of 0.9 or higher. Otherwise, defaults to center of NY.
  5. Backend API route then updates the database with user information and latitude/longitude.
  6. New user record is returned to front end and put on state.