MCPcopy Create free account
hub / github.com/react-native-maps/react-native-maps / addressForCoordinate

Method addressForCoordinate

src/MapView.tsx:996–1001  ·  view source on GitHub ↗

* Convert a coordinate to address by using default Geocoder * * @param coordinate Coordinate * @param [coordinate.latitude] Latitude * @param [coordinate.longitude] Longitude * * @return Promise with return type Address

(coordinate: LatLng)

Source from the content-addressed store, hash-verified

994 * @return Promise with return type Address
995 */
996 addressForCoordinate(coordinate: LatLng): Promise<Address> {
997 if (this.fabricMap.current) {
998 return this.fabricMap.current.getAddressFromCoordinates(coordinate);
999 }
1000 return Promise.reject('getAddress not supported on this platform');
1001 }
1002
1003 /**
1004 * Convert a map coordinate to user-space point

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected