Intent that should allow opening a map showing the given location (if it exists)

@param latitude  The latitude of the center of the map
@param longitude The longitude of the center of the map
@return the intent
189933
public static Intent newNavigationIntent(float latitude, float longitude) {
        StringBuilder sb = new StringBuilder();
        sb.append("google.navigation:q=");

        sb.append(latitude);
        sb.append(",");
        sb.append(longitude);

        return new Intent(Intent.ACTION_VIEW, Uri.parse(sb.toString()));
    }
246622
@Pure
	public GeoLocationPoint getGeoPosition() {
		final Point2d p = getPosition2D();
		if (p != null) {
			return new GeoLocationPoint(p.getX(), p.getY());
		}
		return null;
	}
453252
function(lat, long, centerMap) {

        if (centerMap === undefined) centerMap = true

        setAddressInternal({
            location: new google.maps.LatLng(lat, long)
        })

        var latLong = new OpenLayers.LonLat(long, lat).transform(
            new OpenLayers.Projection("EPSG:4326"), // transform from WGS 1984
            map.getProjectionObject() // to Spherical Mercator Projection
        )

        if (!zoom) {
            zoom = init_zoom
        } else {
            zoom = map.getZoom()
        }

        if (centerMap) {
            map.setCenter(latLong, zoom)
        }

        marker = new OpenLayers.Marker(latLong, markerIcon)

        markers.clearMarkers()
        markers.addMarker(marker)
    }
1006996
def for_latitude_longitude(cls, latitude, longitude, zoom):
        """"""
        point = Point.from_latitude_longitude(latitude=latitude, longitude=longitude)
        pixel_x, pixel_y = point.pixels(zoom=zoom)
        return cls.for_pixels(pixel_x=pixel_x, pixel_y=pixel_y, zoom=zoom)
635695
public static Location center(Location... location)
    {
        double lat = 0;
        double lon = 0;
        double height = 0;
        for (int ii=0;ii<location.length;ii++)
        {
            lat += location[ii].getLatitude();
            lon += location[ii].getLongitude();
        }
        Location loc = new Location(lat/location.length, lon/location.length);
        return loc;
    }
583938
protected function buildRequestURL($latitude, $longitude, \DateTime $time = NULL, array $parameters = NULL)
    {
        $requestUrl = Overcast::API_ENDPOINT . Overcast::getApiKey() . '/' . $latitude . ',' . $longitude;

        if (NULL !== $time) {
            $requestUrl .= ',' . $time->getTimestamp();
        }

        $requestUrl .= '?' . $this->buildRequestParameters($parameters);

        return $requestUrl;
    }
9253
public static PendingResult<ElevationResult> getByPoint(GeoApiContext context, LatLng location) {
    return context.get(API_CONFIG, SingularResponse.class, "locations", location.toString());
  }
654202
public void setLongitude(final String longitude) {
    if(StringUtils.isBlank(longitude)) {
      return;
    }
    try {
      setLongitude(Double.parseDouble(longitude.trim()));
    }
    catch(Exception e) {
      // nothing is set
    }
  }
304449
public static LocationEngineResult create(Location location) {
    checkNotNull(location, "location can't be null");
    List<Location> locations = new ArrayList<>();
    locations.add(location);
    return new LocationEngineResult(locations);
  }
1183672
public static Intent showLocationServices() {
        Intent intent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);
        intent.addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY | Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET);
        return intent;
    }
635850
protected function generateLocation(float $latitude, float $longitude, float $altitude = 0.0) : int
    {
        return (int)hexdec(xxhash32($this->getLocationBytes($latitude, $longitude, $altitude), 0x1B845238));
    }
604885
@Nullable
  public static LocationEngineResult extractResult(Intent intent) {
    LocationEngineResult result = null;
    if (isOnClasspath(GOOGLE_PLAY_LOCATION_RESULT)) {
      result = extractGooglePlayResult(intent);
    }
    return result == null ? extractAndroidResult(intent) : result;
  }
1342708
public void contextClickAt(double lat, double lon) {
            final Coordinate coordinate = new Coordinate(lat, lon);
            if (logger.isTraceEnabled()) {
                logger.trace("JS reports context click at {}", coordinate);
            }
            fireEvent(new MapViewEvent(MapViewEvent.MAP_RIGHTCLICKED, coordinate));
        }
98754
public static final Geoshape circle(final float latitude, final float longitude, final float radiusInKM) {
        Preconditions.checkArgument(isValidCoordinate(latitude,longitude),"Invalid coordinate provided");
        Preconditions.checkArgument(radiusInKM>0,"Invalid radius provided [%s]",radiusInKM);
        return new Geoshape(new float[][]{ new float[]{latitude, Float.NaN}, new float[]{longitude, radiusInKM}});
    }
680021
@Programmatic
    @Override
    public Location getLocation() {
        final String latLng = getLatLng();
        return latLng != null? Location.fromString(latLng.replace(",",";")): null;
    }
720115
public static Double checkLatitude(String name, Double latitude) {
        if (latitude == null) {
            throw new IndexException("{} required", name);
        } else if (latitude < MIN_LATITUDE || latitude > MAX_LATITUDE) {
            throw new IndexException("{} must be in range [{}, {}], but found {}",
                                     name,
                                     MIN_LATITUDE,
                                     MAX_LATITUDE,
                                     latitude);
        }
        return latitude;
    }
1336964
private static function createCoordinates($latitude, $longitude)
    {
        if (null === $latitude || null === $longitude) {
            return null;
        }

        return new Coordinates($latitude, $longitude);
    }